3 messages in net.sourceforge.lists.courier-maildrop[maildropl] filtering using logical II's
FromSent OnAttachments
James TanisOct 22, 2004 9:01 pm 
Sam VarshavchikOct 22, 2004 9:21 pm 
James TanisOct 22, 2004 10:38 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] filtering using logical II'sActions...
From:James Tanis (jta@pycoder.org)
Date:Oct 22, 2004 9:01:39 pm
List:net.sourceforge.lists.courier-maildrop

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