procmail
[Top] [All Lists]

Re: bad clams?

2002-07-28 19:52:27
| The message that got misrouted is in a text file called "message."
|
| $ procmail * ()\/bk.ru message
| or
| $ procmail -m ()\/bk.ru message (doesn't look like the -m synopsis)
| or
| $ procmail "bk.ru" message
|
| ?????

Procmail does not support having recipe code on the command line; it has to be
in a file.  So you create a new rcfile -- let's call it .frogrc and put it
into $HOME.  It should look something like this:

 LOGFILE=$HOME/.froglog
 DEFAULT=$HOME/tadpoles # for messages that are not full-fledged frogs
 VERBOSE=on

 :0:
 * ()\/(that\.long|list\.of|\
      do\.mains|you\.have)
 frogs

Then, back at the shell prompt,

 procmail .frogrc < message

and then you read $HOME/.froglog to see what text was assigned to MATCH.





_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>