Submitted by Murz on Mon, 09/06/2010 - 00:51
Many time I try to setup email filter, that filters messages to ".*@.+\.mydomain.com" to imap subfolder. Each time it applies on all mail, but it must not apply to "myname@mydomain.com" mail and other!
I setup filter via usermin as "Header To must contain \@.+\.mydomain\.com", and it creates string in .procmailrc:
* To: .*\@.+\.mydomain\.com.*
The problem is in missed "^" symbol before header field id "To:" in .procmailrc, because without it this string matches to "In-Reply-To: ".
Working string is:
* ^To: .*\@.+\.mydomain\.com.*
In all examples I see that procmail filters uses "^" symbol before header name.
And, I think, usermin must add it every time for every header field.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Mon, 09/06/2010 - 14:13 Comment #1
You are right, the ^ should really be added before the header name. I will fix this in the 1.460 Usermin release.
Submitted by Issues on Mon, 09/20/2010 - 19:19 Comment #2
Automatically closed -- issue fixed for 2 weeks with no activity.