]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-mail: message_address_parse() - Handle invalid standalone phrases better
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 7 Jun 2017 12:33:42 +0000 (15:33 +0300)
committerGitLab <gitlab@git.dovecot.net>
Wed, 7 Jun 2017 15:33:55 +0000 (18:33 +0300)
commit5430411539347357344f6bf2552731b62f0a14fd
tree2a3cd7e01549170f193452c1b88bbc6ae92c2a4d
parentf55b07916c82db8b915b28252e44ce6fb2bd3080
lib-mail: message_address_parse() - Handle invalid standalone phrases better

We'll treat "local-part" (without quotes) as a mailbox even without
@domain, but if it continues with anything or if it's a quoted-string,
we'll treat it as a display-name instead.

This is probably better than just converting everything to display-name,
since there are likely to exist headers like "To: localuser"
src/lib-mail/message-address.c
src/lib-mail/test-message-address.c