The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

email filters delivering to sub folder not working

Discussion in 'E-mail Discussions' started by JamieD, Oct 28, 2007.

  1. JamieD

    JamieD Well-Known Member

    Joined:
    Sep 3, 2003
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I have setup, and tested, an email filter with the action "Deliver to folder". If I enter a simple folder name such as test then the filter works as expected. If however I enter a subfolder like test/subfolder no email will be moved to that folder. When running the filter test it will output something like:

    Save message to: /home/user/mail/domain.co.uk/email/test/.subfolder/ 0660

    Notice the dot before the subfolder "test/.subfolder", surely this should be "test/subfolder"?

    Is there a way to get mail filters working in this way?

    Thanks
    Jamie
     
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator

    Assume I have a mailbox called 'jack' in the domain 'inthebox.com' and my accountname is 'ggiant', my directory to my mailbox is:

    /home/ggiant/mail/inthebox.com/jack

    If I create a folder called 'Spam' as a folder under my main jack@inthebox.com mailbox, it shows up as:

    /home/ggiant/mail/inthebox.com/jack/.Spam (note the dot)

    If I create another folder called Phishing as a subfolder of 'Spam', it shows up as:

    /home/ggiant/mail/inthebox.com/jack/.Spam.Phishing (yes, this is how it shows up)

    inbox (/home/ggiant/mail/inthebox.com/jack/new|cur
    - Spam (/home/ggiant/mail/inthebox.com/jack/.Spam
    - Phishing (/home/ggiant/mail/inthebox.com/jack/.Spam.Phishing


    So, if 'Test' is a folder inside the main 'email@domain.co.uk' account and you want to deliver to a folder called 'subfolder' that is within the 'Test' folder, then you want it to go to:

    /home/user/mail/domain.co.uk/email/.test.subfolder

    So maybe you need to tell it to deliver to folder: test.subfolder.

    I tried this on one of my accounts and it worked.

    Inbox (jack@inthebox2.com)
    - Spam
    - Phishing

    Set up a user level filter for jack@inthebox2.com that said anything from myemail@gmail.com should go into Spam.Phishing

    Sent an email from myemail@gmail.com to jack@inthebox2.com, and hte message went into the subfolder called Phishing, whose parent folder is Spam (which happens to be a folder in the jack@inthebox2.com email account).

    Mike
     
  3. JamieD

    JamieD Well-Known Member

    Joined:
    Sep 3, 2003
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Thanks Mike, that works a treat, just replace /'s with .'s
     
Loading...

Share This Page