procmail
[Top] [All Lists]

Re: help for a newbie

2004-11-30 09:20:04
On Tue, Nov 30, 2004 at 06:53:38AM -0900, jondola(_at_)mtaonline(_dot_)net 
wrote:
there must be an error in the way I copied/paste, 


Here's the recipe as I've got it now:

WHITELIST=$HOME/.mutt.aliases
WHITE=$HOME/IN-friends

:0 
^From:.*\/[A-Za-z0-9_(_dot_)+-]+(_at_)[A-Za-z0-9_(_dot_)+-]+
* ? grep -iw "$MATCH" $WHITELIST
$WHITE

You are missing an asterisk ("*") at the start of the
first condition.

    * ^From:.*\/[A-Za-z0-9_(_dot_)+-]+(_at_)[A-Za-z0-9_(_dot_)+-]+


Condition lines must start with an asterisk (let's not
get into deprecated syntax from a decade ago just now).

A procmail recipe has an initial line -- modernly,

   :0 flags : lockfile

where everything past the ":0" is optional -- zero
or more condition lines, and an action line.  There
can also be comment lines and blank lines interpersed
with modern procmail binaries; and the initial line
can also take a comment on it.

-- 
dman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail