I'm getting mail turning up in the inbox when it shouldn't be.
Can anyone spot what I've done wrong?
I'm not sure I've got the folder names right where they've got spaces in
them... eg NZ Nog, NA Nog
Cheers Don
LOGFILE=/home/don/procmail.log
VERBOSE=on
MAILDIR=$HOME/mail
:0
*
Thanks Steve,
I think that my criteria are also expecting a direct == match on the cc
or to and not 'contains'.
If the message is sent cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
and my rule is (to|cc)*.:[EMAIL PROTECTED]
then the message is ignored.
Thoughts?
Cheers Don
Steve Holdoway wrote:
On Sun, 09 Apr 2006 23:13:17 +1200
Don Gould [EMAIL PROTECTED] wrote:
Thanks Steve,
I think that my criteria are also expecting a direct == match on the cc
or to and not 'contains'.
If the message is sent cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
and my rule is (to|cc)*.:[EMAIL
and my rule is (to|cc)*.:[EMAIL PROTECTED]
Read that again carefully ;), then make it
* ^(to|cc):[EMAIL PROTECTED]
Understanding regular expressions is well worth the effort!
Btw the @ is not a special character and shouldn't be quoted.
Volker
--
Volker Kuhlmann is
However, why not just use (to|cc):[EMAIL PROTECTED]
Don't do that, finishing anything with any string at all anchored to
end of line is a waste of time. Comparison stops when the pattern
mismatches, or when the pattern runs out, which gives a match. Same as
sed, grep, and everything else.