Filter and Forward mail not working

3 posts / 0 new
Last post
#1 Fri, 12/19/2008 - 20:07
brmasha

Filter and Forward mail not working

Hi, I can't seem to get the Filter and Forward Mail settings to work correctly. I am trying to set up some simple filters based on subject line. Let me give some examples of what works and what doesn't. If I set a rule that says if the subject contains [Mailinglist] in the subject line then send to specific folder. This doesn't work, it just simply arrives in the inbox. If I take off the [ ] brackets and have it look for just a specific word then the mail gets filtered correctly. Any ideas why this doesn't work? I am using the user@domain.tld in postfix if that makes a difference. Any assistance would be appreciated.

Sun, 06/07/2009 - 07:34
andreychek

Howdy,

The text of what you put there is put into the .procmailrc file.

As procmail works with regular expressions, the brackets have a special meaning.

Try escaping the characters, something like this:

[code:1]
\[Mailinglist\]
[/code:1]

And see if that helps.
-Eric

Fri, 01/02/2009 - 17:42
brmasha

Wow that worked! I guess I need to read up on regular expressions. Thank you for your help.

Topic locked