procmail
[Top] [All Lists]

Re: quotes in LOG= (was Kind of functions in procmail)

2001-11-18 13:17:26
At 08:27 2001-11-18 -0600, David W. Tamkin wrote:

Heddy's code includes the trailing newline needed there.  In Paul's
suggestion, unless $SPAMREASON already ends in an explicit newline, the
write to the logfile would end without a newline and the next text added to
the logfile would start at the right of $SPAMREASON rather then below it.

Let me mention the technique I use:

SPAMVER="
INFO: SpamFilter v02.00.03  PSE  2001.10.17 10:18:30
"

Yes, that starts with a newline, and ends with a newline. Now, in my individual delivery recipes, I may have a log line like so:

        LOG="SPAM: raw 8-bit characters in the subject$SPAMVER"

Note that there is no newline between the quotes and this line stands on it's own (useful for being able to comment it out in one fell swoop). It appears in the log as:

SPAM: raw 8-bit characters in the subject
INFO: SpamFilter v02.00.03  PSE  2001.10.17 10:18:30

(with the expected newline after the INFO line).

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