This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients barry, janmalte, labrat, pas, r.david.murray, serhiy.storchaka
Date 2015-10-19.20:04:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445285063.92.0.173522978952.issue22684@psf.upfronthosting.co.za>
In-reply-to
Content
Here is minimized example.

from email._header_value_parser import *
al = AddressList([Address([Mailbox([NameAddr([DisplayName([Atom([ValueTerminal('example', 'atext'), CFWSList([WhiteSpaceTerminal('\t', 'fws')])])]), AngleAddr([ValueTerminal('<', 'angle-addr-start'), AddrSpec([LocalPart([DotAtom([DotAtomText([ValueTerminal('very-very-very-very-very-very-very-very-very-very-very-very-long', 'atext')])])]), ValueTerminal('@', 'address-at-symbol'), Domain([DotAtom([DotAtomText([ValueTerminal('example', 'atext'), ValueTerminal('.', 'dot'), ValueTerminal('org', 'atext')])])])]), ValueTerminal('>', 'angle-addr-end')])])])]), ValueTerminal(',', 'list-separator'), Address([Mailbox([NameAddr([AngleAddr([CFWSList([WhiteSpaceTerminal('\t', 'fws')]), ValueTerminal('<', 'angle-addr-start'), AddrSpec([LocalPart([DotAtom([DotAtomText([ValueTerminal('very-very-very-very-very-very-very-very-very-very-very-very-long', 'atext')])])]), ValueTerminal('@', 'address-at-symbol'), Domain([DotAtom([DotAtomText([ValueTerminal('example', 'atext'), ValueTerminal('.', 'dot'), ValueTerminal('org', 'atext')])])])]), ValueTerminal('>', 'angle-addr-end')])])])])])
import email.policy
al.fold(policy=email.policy.default)
History
Date User Action Args
2015-10-19 20:04:23serhiy.storchakasetrecipients: + serhiy.storchaka, barry, r.david.murray, labrat, pas, janmalte
2015-10-19 20:04:23serhiy.storchakasetmessageid: <1445285063.92.0.173522978952.issue22684@psf.upfronthosting.co.za>
2015-10-19 20:04:23serhiy.storchakalinkissue22684 messages
2015-10-19 20:04:23serhiy.storchakacreate