procmail
[Top] [All Lists]

Re: Message-ID syntax

1999-10-18 13:14:07
++ 17/10/99 13:17 -0500 - Philip Guenther:
(Yes, that _could_ be
    ws="[   ]*(\([^()]*\)[  ]*)*"
but I have yet to see a Message-Id: header with two comments in a row,
and I don't feel like that much slack to a loser MTA/MUA writers.)

But strictly taken (the way the RFC tells it us) it is possible to have
two comments in a row. Correct? If so, i prefer the latter one.

Well, this brings up the question of "why are you doing this?"  What is
"correct" here depends on your answer.

The only thing i use it for are a couple of things that are checked on
incoming things that may could be interesting (incorrect order of
fields, listings in RBL and like, invalid MID's, addressed to spam trap,
etc). If there's something possibly interesting an header is added to
the message.

So, the only thing is to check if a MID is an RFC valid MID. :-)

The following is legal by the rfc:

      Message-Id: (ksdjfhs(kdsfhsdk))<(skjdfh)"\(foo"().
              (dfjksdhf)(dkjf(djfh))bar(dkjhfsdkjfkj)@(kjfhsdkjf)host
              (sdkjfhsdkjf)>(ksjdfhskjfhksdjfhskdjhf)

Wow... You know, i have always been interested in those kind of things
but never looked that closely at things. Never knew this... or at least,
bit that consiously.

Thanks for the clarification,

        -Rejo.

-- 
= Rejo Zenger  [Sister Ray Crisiscentrum]               
rejo(_at_)sisterray(_dot_)xs4all(_dot_)nl
= http://mediaport.org/~sister                PGP: RSA FAE40065, DSS/DH 2C8059B5
--------------------------------------------------------------------------------

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