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