Hi all.
On Sat, Jan 04, 2003 at 06:21:11AM -0500, dman(_at_)nomotek(_dot_)com wrote:
LuKreme <kremels(_at_)kreme(_dot_)com> wrote:
On Tuesday, December 10, 2002, at 02:33 PM, Paul Chvostek wrote:
* ! ^Message-Id:
<[a-z0-9!#%*+/=?^_{|}~.\$\'\`-]+(_at_)[a-z0-9!#%*+/=?^_{|}~.\$\'\`-]+>$
(watch the line wraps)
Message-ID: <p05300968ba3b75bdc3cd(_at_)[192(_dot_)168(_dot_)1(_dot_)11]>
What about that message ID violates the RFC? I read through 2822 and
didn't see anything that would disqualify that message. Is it simply
the []'s enclosing the IP address that are hitting the regex?
Are brackets evil?
While it's too much work for me to try to parse Paul's regex right now,
I don't think brackets or the form indicated actually violate the RFCs.
IOW, Paul's regex may need some rethinking.
The regex is right, the MTAs are wrong, brackets are evil, and the
example Message-ID does in fact break the rules for multiple reasons.
As http://www.faqs.org/rfcs/rfc2822.html is my witness, section 3.2.4
defines "atext" as any character except controls, space and specials.
Section 3.2.1 defines "specials", and sure 'nuff, square brackets are
included. And section 3.6.4 provides the various definitions that put
it all together.
The particular example given probably *does* violate the RFCs, though,
but not because of the brackets per se; rather, because the numbers
therein belong to /16 private address space. They have no value as
indicators of any TLD.
No, the example violates RFC because of the brackets. The IP address is
perfectly acceptable in terms of format alone ... but the RFC only says
that the "id-right" portion of the Message-ID is MUST be a globally
unique identifier for the message, and suggests that "a good method is
to put the domain name (or a domain literal IP address)", though it
doesn't state that this is the only way. Personally, I think it's
reasonable to assume that use of private IP addresses or unqualified
hostnames violates the "MUST" clause, even aside from the fact of square
brackets breaking format rules.
--
Paul Chvostek
<paul(_at_)it(_dot_)ca>
Operations / Abuse / Whatever
it.canada, hosting and development http://www.it.ca/
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail