procmail
[Top] [All Lists]

Re: Using Formail to remove headers

2005-08-02 04:24:29
Dallman Ross:
Ruud H.G. van Tol:
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."

Since when are you allowed to spoil my jokes?
(Stephen started, by calling the man-pages cryptic.)


       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.

That totally depends on how you set up Windows Networking. Amongst many
programs, I use W2k+OE, my Message-ID contains "@isolution.nl".
Righ click on My Computer -> Properties -> Network Identification ->
Properties (see Full computer name) -> More -> Primary DNS suffix of
this computer.


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.

It is a bit stronger than that. RFC 2822, section 3.6.4:
   Though other algorithms will work, it is RECOMMENDED that the right
   hand side contain some domain identifier (either of the host itself
   or otherwise) such that the generator of the message identifier can
   guarantee the uniqueness of the left hand side within the scope of
   that domain.

When the left-side is random enough, you might think that you get away
with a right-side that is not exclusively yours, but then there will
always be a risk of collisions, which goes against "will work". If
everybody would use a proper FQDN (host.domain.tld) at the right-side,
and a proper date.time.counter.random-or-hash at the left-side of the @,
then there is no quest for collisions.


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.

Sometimes it just ends in "@localhost>" or "@[127.0.0.1]>" or even
"@127.0.0.1>".

-- 
Grtz, Ruud


____________________________________________________________
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