procmail
[Top] [All Lists]

Question About Logging.

2003-05-29 23:15:10
I set up a small sandbox.


I have the following testrc


VERBOSE=On
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
SHELL=/bin/sh
LOGABSTRACT=yes
LOGFILE=/var/log/test/procmail-test.log
COMSAT=no
LINEBUF=65536
FORMAIL=/usr/bin/formail
NL="
"

:0
* B ?? (spammerdomain.com)
 {
  LOG="Bodyspam: $MATCH
  "
  LOGABSTRACT=ALL
  :0:
  /var/log/test/spamdomaininbody
  LOGABSTRACT=NO
}


I have a test message, test.msg that has
spammerdomain.com

Somewhere in the body of the message.


Now running 
procmail -m newprocmailrc <test.msg


I get the following in the log.

The recipe works as expected, except that it doesn't log what I am
telling it to.

Here is the log.

procmail: Match on "(spammerdomain.com)"
procmail: Assigning "LOG=Bodyspam: 
  "
Bodyspam: 
  procmail: Assigning "LOGABSTRACT=ALL"
SPAM: procmail: Locking "/var/log/test/spamdomaininbody.lock"
procmail: Assigning "LASTFOLDER=/var/log/test/spamdomaininbody"
procmail: Opening "/var/log/test/spamdomaininbody"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/log/test/spamdomaininbody.lock"
From kcq0iap4a(_at_)aol(_dot_)com  Thu May 29 23:27:26 2003
 Subject: Fw: Backup your DVD Movie Collection l 
  Folder: /var/log/test/spamdomaininbody                   2799


As you see procmail is  not adding the $MATCH string in the log file,
after the 




_______________________________________________
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>