]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-smtp: smtp-address - Implement workarounds for parsing addresses with a bad local...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 4 Nov 2018 18:00:47 +0000 (19:00 +0100)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 4 Oct 2019 11:59:35 +0000 (13:59 +0200)
commit75823320e21ee0f1bbc426553e0de9d64ec23ac5
tree0fae7d633ef4878b4c6ee315d68243e864d14085
parent06fd0f068c45d176b14b54707f1a9be3b8cc0083
lib-smtp: smtp-address - Implement workarounds for parsing addresses with a bad localpart.

Always parse it as normal when it starts with `<' or `"'. The workaround
consists of parsing the address by splitting it on the last `@'. The address is
accepted when the resulting localpart and domain can be used to compose a valid
address. This workaround is now shared with username-to-address parsing, which
existed before.
src/lib-smtp/smtp-address.c
src/lib-smtp/smtp-address.h