procmail
[Top] [All Lists]

Re: How do I add a feild to the LOGFILE?

2002-01-25 05:39:24
At 18:44 2002-01-25 +0700, Tim Rice wrote:
>From tim(_at_)thaistuff(_dot_)com Fri Jan 25 11:34:18 2002
 Subject: Spamtrap:  make money fast
  Folder: /usr/boxes/rice/thaistuff.com/spam
1217
  X-spamtrap: { whatever is found }

You won't add it AFTER. Add it before, like where you're dumping it into a box:

:0
* somecondition
{
        LOG="X-spamtrap: ( whatever is found )
"

        :0:
        spam
}


Note that the hard newline IS intentional. Otherwise, there won't be a newline in the emitted log entry.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

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