Fix MAIL TO option parsing for the case where the envelope-from has embedded space. exim-4_81_RC1
authorJeremy Harris <jgh146exb@wizmail.org>
Fri, 25 Jan 2013 18:56:21 +0000 (18:56 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Sat, 26 Jan 2013 15:03:28 +0000 (15:03 +0000)
commite38eac354dfb09bb763637a463a9e7e42aab3360
tree19f05fe4d2d1c0a24c99713edc7f7c4dde66c8a7
parenta3b532ed18b868b52efcf194fcc9881f8bac529c
Fix MAIL TO option parsing for the case where the envelope-from has embedded space.

The current code order of parsing the options off the tail prior to
taking the address off the front seems bogus.  At best the option parser
has to deal with the address and discover it is not a known option.
When the address localpart has spaces (legal, if the localparte is quoted)
confusion ensues as the option-parser is not aware of the address quoting
rules.
12 files changed:
src/src/smtp_in.c
test/log/2002
test/log/2102
test/mail/2002.CALLER
test/mail/2102.CALLER
test/scripts/0000-Basic/0121
test/scripts/2000-GnuTLS/2002
test/scripts/2100-OpenSSL/2102
test/stderr/0121
test/stdout/0121
test/stdout/2002
test/stdout/2102