procmail
[Top] [All Lists]

Re: newline in procmail.log file

1997-12-26 08:38:40
Don Hawkinson asked,

| The LOG variable is put into the procmail.log file, but a newline is not
| appended to the entry.  In the folowing example the LOG varable is set to
| LOG=" crap in subject line: $MATCH  ".   How do I get a newline appended to
| the line entered in the procmail.log file so that the next entey in the
| logfile is put on a new line?

Include the newline explicitly when you set $LOG, like this:

LOG=" crap in subject line: $MATCH
"

Alternatively, if you don't like the way that looks, set 

NL="
"

once near the top of your .procmailrc, and then, every time you use LOG=,

LOG="whatever text you want logged$NL"

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