procmail
[Top] [All Lists]

Re: Appending FROM: headers only to a local file

2008-09-17 11:34:53
Sean,

I saw that you'd conceded that it's half one half the other

That's not where I conceded that it's half of each.  Assigning a
variable for a newline is of benefit if you're going to be using it at
least twice.

I'm saying that defining and then using $NL is actually less error
prone than not.

That's what I question.  In giving someone else a short snippet of code
that requires a literal newline in quotes exactly once, there's roughly
equal risk of the reader's messing this up:

# warning warning warning
NL='
'
# warning warning warning

other code "$NL" other code

... as there is that (s)he'll mess this up:

# warning warning warning
other code '
' other code
# warning warning warning

____________________________________________________________
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