Re: Getting lookup() to work
Ron Johnson <ron.l.johnson <at> cox.net>
2006-04-03 01:37:00 GMT
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?
--
--
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
"They ginned up a war with an empty gun."
Chris Matthews, regarding Saddam Hussein & Iraq
-------------------------------------------------------
(Continue reading)