Hi, I'm basically trying to do some simple filtering to remove my mail lists
from my "other" mail. Unfortunately, at least one of my lists does not use the
List-Id field so in order to get the majority of the messages I need to filter
on To: and Cc:.
I do fine with a simple if..
if (/^To: *mi...@openbsd.org/)
{
exception {
to "/home/doveclaw/Maildir/lists.openbsd/"
}
}
but introduce a logical or and I'm doing something wrong..
if (/^To: *mi...@openbsd.org/ !! /^Cc: *mi...@openbsd.org/)
{
exception {
to "/home/doveclaw/Maildir/lists.openbsd/"
}
}
I get..
Oct 22 23:15:13 loki postfix/local[8702]: A75014CC16:
to=<dove...@localhost.pycoder.org>, orig_to=<dove...@pycoder.org>,
relay=local, delay=1, status=deferred (temporary failure. Command output:
.mailfilter(1): Syntax error after ) )
Now I did get a similar error when I was improperly placing the opening and
closing braces of the if statement. I had taken care of that by this time
though. If the above if block seems syntactically correct.. I guess I'll go and
try again :P.. Any help would be appreciated, I may have to kill myself if I
have to go over the man page *again* :(.
On a side note, using the logging facilities, is there a way to get more
informative output on errors (by default)?
Thanks