procmail
[Top] [All Lists]

Re: Using Formail to remove headers

2005-08-02 02:53:24
On Tue, Aug 02, 2005 at 10:32:01AM +0200, Ruud H.G. van Tol wrote:

Stephen Allen:

b) Why do $LOGNAME and $HOSTNAME have a \ after the $ symbols?

In 'man procmailrc' this is said about '$\':
"$\name will be substituted by the
all-magic-regular-expression-characters-disarmed equivalent of $name"

That is 'cryptic' for: "use $\var in stead of $var when you use a
variable inside a condition, unless you set up $var especially for usage
inside a condition".

And *that* is cryptic for, "'$\var' quotes all the chars in '$var'
that would otherwise be regex magic chars or metachars."

Suppose $LOGNAME is "john.smith".  Well, then $\LOGNAME is
"john\.smith".  (Actually, it's "()john\.smith", but the "()"
gesture is meaningless in this case.)


       Message-ID: <017401c5952c$70bd9720$c800a8c0(_at_)dangermouse>

There really should be a FQDN after the @.

There really should be, but Microsoft Outlook Express doesn't
put one in, in most cases, so spits in the face of the standard.
Btw, it is a standard, but not an actual requirement of the RFCs.
They advise that it's a good idea, is all.  At least that's my
recollection from my last read-through.

I have anti-spam recipes that look carefully at the Message-ID.
I have to write in exceptions for OE and a couple of other lame
MUAs.

Dallman

____________________________________________________________
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