[Dovecot] Another address-spec problem

Chris Wakelin c.d.wakelin at reading.ac.uk
Thu Sep 22 01:27:34 EEST 2005


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


More information about the dovecot mailing list