procmail
[Top] [All Lists]

Re: Appending FROM: headers only to a local file

2008-09-16 22:51:20
At 11:08 2008-09-16 -0500, David W. Tamkin wrote:

[snip - my justification for using a $NL]

Fair enough, but you're going to need to assign

NL='
'

at some point, which will be vulnerable to the same miscopying when it's
distributed.

I have quite a few variables I have to define anyway, and things are going to be a lot more wonked if they're not defined properly <g>.

Six hundred sixty-six of one, fifty-five and a half dozen of the other.

Not quite - one of one, several dozen of the other. <g>

With the ONE assignment, you can prefix it with a suitable reminder:

# CAUTION: the quotes here encapsulate a hard newline - they belong on
# separate lines.
NL="
"

Versus wondering about the split lines getting messed up all over the place in the various RCFILES. Also, if the NL isn't defined before being used in other rcfiles, at least the failure mode shouldn't be catastrophic - unlike a closing quote being deleted from some line, and procmail having to parse out until it finds a mate for it... <g>


FTR, NL is defined in my published sandbox.  The actual comment there is:

# Newline for use in logging (this negates the need to add hard newlines
# into logging statements - you can use $NL instead).
NL="
"

---
 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 homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail