]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Barry Scott writes:
authorGuido van Rossum <guido@python.org>
Tue, 15 Jun 1999 18:06:20 +0000 (18:06 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 15 Jun 1999 18:06:20 +0000 (18:06 +0000)
commitb18448705501a5962ebd3946033fdc4b03cdf58a
treea8606eaf112f23c990b8dfb1faad29739343b047
parent1e4402998f663d9d3df8239633aa97f0b02df9b5
Barry Scott writes:

Problem: rfc822.py in 1.5.2 final loses the quotes around
quoted local-part names.

The fix is to preserve the quotes around a local-part
name in an address.

Test:

import rfc822
a = rfc822.AddrlistClass('(Comment stuff) "Quoted
name"@somewhere.com')
a.getaddrlist()

The correct result is:

[('Comment stuff', '"Quoted name"@somewhere.com')]
Lib/rfc822.py