I've had complaints from users about "MISSING_DOMAIN" in header
fields
and I've tracked it down to having "." in an unquoted display
name.
By my reading of RFC2822 (especially section 4.1)
A N Other <a.n.other at somewhere.org>
"A. N. Other" <a.n.other at somewhere.org>
are legal, but
A. N. Other <a.n.other at somewhere.org>
is "obsolete", but should be supported by the server (no clients
should
do it).
I think the relevant syntax is
phrase = 1*word / obs-phrase
word = atom / quoted-string
obs-phrase = word *(word / "." / CFWS)
and rfc822_parse_phrase() should be modified to cope with
"obs-phrase".
I'll have a go, but if Timo or anybody knows how to do it properly, that
would be better!
Chris
--
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin, c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
Here's a first attempt at a patch against Dovecot-1.0-stable. It basically allows "." in the words as long as it's not the first character of the first word. The patch should work with Dovecot-1.0-alpha2 with very slight modification (Timo put some comments in rfc822-parser.h which breaks the diff). So A. N. Other <a.n.other at somewhere.org> Andy N. Other <a.n.other at somewhere.org> A.N.Other <a.no.other at somewhere.org> but not .A N. Other <a.n.other at somewhere.org> should now work. Chris Chris Wakelin wrote:> I've had complaints from users about "MISSING_DOMAIN" in header fields > and I've tracked it down to having "." in an unquoted display name. > > By my reading of RFC2822 (especially section 4.1) > > A N Other <a.n.other at somewhere.org> > "A. N. Other" <a.n.other at somewhere.org> > > are legal, but > > A. N. Other <a.n.other at somewhere.org> > > is "obsolete", but should be supported by the server (no clients should > do it). > > I think the relevant syntax is > > phrase = 1*word / obs-phrase > word = atom / quoted-string > obs-phrase = word *(word / "." / CFWS) > > and rfc822_parse_phrase() should be modified to cope with "obs-phrase". > > I'll have a go, but if Timo or anybody knows how to do it properly, that > would be better! > > Chris >-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin at reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dovecot.obsphrase.patch URL: <http://dovecot.org/pipermail/dovecot/attachments/20050922/4b80426b/attachment.pl>
Reasonably Related Threads
- Address with whitespace shows as ""@MISSING_DOMAIN
- lda: Warning: Failed to parse return-path header: Invalid character in localpart
- lda: Warning: Failed to parse return-path header: Invalid character in localpart
- "Angle" address with empty "display name"
- Fwd: Weird problem opening mbox in beta1/2