7 messages in net.sourceforge.lists.courier-maildrop[maildropl] Getting lookup() to work
FromSent OnAttachments
Ron JohnsonApr 1, 2006 8:39 pm 
moussApr 2, 2006 4:31 am 
Ron JohnsonApr 2, 2006 6:37 pm 
moussApr 3, 2006 9:33 am 
Ron JohnsonApr 3, 2006 10:00 am 
moussApr 3, 2006 11:58 am 
Ron JohnsonApr 3, 2006 2:21 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] Getting lookup() to workActions...
From:Ron Johnson (ron.@cox.net)
Date:Apr 1, 2006 8:39:53 pm
List:net.sourceforge.lists.courier-maildrop

Hi,

http://www.courier-mta.org/?maildropfilter.html if (lookup(expr, file, "option")) { ... }

Relevant snippets from my ~/.mailfilter are: import USER killfile = "$HOME/killfile"; sender = getaddr($FROM) if ( /To:.*/ ) && ( lookup($sender, $killfile) ) { to "Maildir/.Trash" }

I'm trying to create a killfile, but am getting an error:

root@haggis:~# mailq -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------ 2B5841CD5C3 5176 Sat Apr 1 22:32:21 sentto-13202574-5368-1143952257-ron.l.johnson=cox.@returns.groups.yahoo.com (temporary failure. Command output: .mailfilter(13): Syntax error after )) me@haggis

In my real ~/.mailfilter, the lookup() is on line 13.

What could I be doing wrong?

Thanks, Ron

Two big problems with Stare Decisis: Dred Scott Plessy v. Ferguson