Skip to content

Allow for combination of non-ascii and quotes#923

Closed
averell23 wants to merge 2 commits into
mikel:masterfrom
averell23:master
Closed

Allow for combination of non-ascii and quotes#923
averell23 wants to merge 2 commits into
mikel:masterfrom
averell23:master

Conversation

@averell23

@averell23 averell23 commented Nov 3, 2015

Copy link
Copy Markdown
Contributor

See the spec for the original problem. Basically,
Encodings.encode_non_usascii(address, charset) got lost if the
address did include double quotes that were escaped like this:
\" and broke the address up incorrectly.

This seems to fix the immediate problem, although I guess there
may be more complications to this.

See the spec for the original problem. Basically,
Encodings.encode_non_usascii(address, charset) got lost if the
address did include double quotes that were escaped like this:
\" and broke the address up incorrectly.

This seems to fix the immediate problem, although I guess there
may be more complications to this.
@averell23

Copy link
Copy Markdown
Contributor Author

To add a bit more background: This is derived of an actual example from our production system. It might not be the most elegant solution, and I didn't re-read RFC822 on how the quote-escaping should be handled.

However a test mail did send correctly with the examples given.

This makes the whole replacement process much more ugly, but
compatible with 1.8...

Oh, and I'm fully aware that it is an ugly regexp with $-vars
and string interpolation. D'oh.
@jeremy jeremy closed this in aaf601d May 15, 2017
@jeremy jeremy added this to the 2.7.0 milestone May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants