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 3, 2006 10:00:43 am
List:net.sourceforge.lists.courier-maildrop

On Mon, 2006-04-03 at 18:34 +0200, mouss wrote:

Ron Johnson wrote:

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) ) )

last time it was a To:.* instead of a From:.*. In both cases this is

Yeah. the "To: " field will never have names from my killfile in it...

useless, because almost all mail have a From and a To header.

are you after a if ($FROM, $somefile)

^^^^

Did you forget a function name?

instead?

{ to "Maildir/.Trash" }

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

sorry, I don't know what a killfile is. but if you think detecting spam is as easy as checking the from or to headers, I'm sorry to announce that it's not.

"I have been assured by a very knowing American of my acquaintance in London, that a young healthy child well nursed is at a year old a most delicious, nourishing, and wholesome food, whether stewed, roasted, baked, or boiled; and I make no doubt that it will equally serve in a fricassee or a ragout." A MODEST PROPOSAL FOR PREVENTING THE CHILDREN OF POOR PEOPLE IN IRELAND FROM BEING A BURDEN TO THEIR PARENTS OR COUNTRY