7 messages in net.sourceforge.lists.courier-maildropRe: [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:Re: [maildropl] Getting lookup() to workActions...
From:Ron Johnson (ron.@cox.net)
Date:Apr 2, 2006 6:37:37 pm
List:net.sourceforge.lists.courier-maildrop

On Sun, 2006-04-02 at 12:33 +0200, mouss wrote:

Ron Johnson wrote:

if ( /To:.*/ ) && ( lookup($sender, $killfile) )

check the 'if' syntax (parens missing above).

if (/To:.*/ && lookup($sender, $killfile))

Thanks. This doesn't throw syntax errors anymore: import USER killfile = "$HOME/killfile"; sender = getaddr($FROM) log "Sender is |$sender|" log "killfile is $killfile" if ( ( /From:.*/ ) && ( lookup($sender, $killfile) ) ) { to "Maildir/.Trash" }

It still doesn't work as a killfile, though. Any thoughts?

"They ginned up a war with an empty gun." Chris Matthews, regarding Saddam Hussein & Iraq