procmail
[Top] [All Lists]

RE: logging actions of recipes

2001-08-21 12:01:42
I'm a newbie, but a wild guess would be - you should set VERBOSE to 'on' in
your .procmailrc like this:
VERBOSE=on

then in your log file you'll see (among _A LOT_ of other stuff) 'setting
RULE=cleanup.rc' or sth. like that.

Luka

* Luka Kladaric *
* mailto:lkladar(_at_)komoseva(_dot_)globalnet(_dot_)hr *
* http://luka.kladaric.net * ICQ: 100757909 *
* GSM: +38598473999 * Ph: +38516551701 *
* Too many freaks, not enough circuses *


| -----Original Message-----
| From: procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE
| [mailto:procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE]On Behalf Of 
Pollywog
| Sent: Tuesday, August 21, 2001 7:40 PM
| To: procmail-users(_at_)procmail(_dot_)org
| Subject: logging actions of recipes
|
|
| I want to be able to log which recipes were responsible for certain
| actions, so after looking at the tips at
|
| http://www.uwasa.fi/~ts/info/proctips.html#which
|
| I put this in a procmail filter file:
|
|
| # Assume loud headers are spam
| :0
| * ^Subject: [A-Z0-9\?!._]*$
| {
|  :0
|  { RULE="cleanup.rc loud headers" }
|  INCLUDERC=$PMDIR/purge.rc
| }
|
|
| The problem is that although the log shows the usual entries for mail
| that is sent to /dev/null, there is no "RULE" entry in the log.  What am
| I doing wrong?
|
| btw, purge.rc has this:
|
| :0 hc:${HOME}/.procmail/headers.log.lock
| | cat >> ${HOME}/.procmail/headers.log
| {
|    :0
|    $TRASH
| }
|
|
|
|
|
| thanks
|
| --
| Andrew
|
|
| _______________________________________________
| procmail mailing list
| procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
| http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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