Re: Non-deprecated equivalent of rfc822.AddressList
On 21Sep2009 10:49, Jason Tackaberry wrote: | On Wed, 2009-09-16 at 14:49 -0400, Jason Tackaberry wrote: | > Since the rfc822 module was removed in Python 3, and is deprecated in | > 2.3, I am obviously trying to avoid using it. | > | > But I'm having a hard time finding an equivalent to rfc822.AddressList | > in the email module, which I want to use to parse a _list_ of addresses: | [...] | > Is there some non-deprecated method I can use to parse an RFC 2822 | > address list? | | No takers? Should I file a bug? Hmm. My address gathering program starts with: from email.utils import parseaddr, getaddresses, formataddr See the pydoc for email.utils; it's very easy to use. Cheers, -- Cameron Simpson DoD#743 http://www.cskk.ezoshosting.com/cs/ Reason #173 to fear technology: o o o o o o ^|\ ^|^ v|^ v|v |/v |X| \| | /\ >\ /< >\ /< >\ /< >\ o> o o o o o o o \ x<\> <)> |\ /< >\ /< >\ /< >\ >> L Mr. email does the Macarena. -- http://mail.python.org/mailman/listinfo/python-list
Re: Non-deprecated equivalent of rfc822.AddressList
En Mon, 21 Sep 2009 11:49:15 -0300, Jason Tackaberry escribió: On Wed, 2009-09-16 at 14:49 -0400, Jason Tackaberry wrote: Since the rfc822 module was removed in Python 3, and is deprecated in 2.3, I am obviously trying to avoid using it. But I'm having a hard time finding an equivalent to rfc822.AddressList in the email module, which I want to use to parse a _list_ of addresses: [...] Is there some non-deprecated method I can use to parse an RFC 2822 address list? No takers? Should I file a bug? Seems so... -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list
Re: Non-deprecated equivalent of rfc822.AddressList
In article , Jason Tackaberry wrote: >On Wed, 2009-09-16 at 14:49 -0400, Jason Tackaberry wrote: >> Since the rfc822 module was removed in Python 3, and is deprecated in >> 2.3, I am obviously trying to avoid using it. >> >> But I'm having a hard time finding an equivalent to rfc822.AddressList >> in the email module, which I want to use to parse a _list_ of addresses: >[...] >> Is there some non-deprecated method I can use to parse an RFC 2822 >> address list? > >No takers? Should I file a bug? Maybe try email-...@python.org? -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "I won't accept a model of the universe in which free will, omniscient gods, and atheism are simultaneously true." --M -- http://mail.python.org/mailman/listinfo/python-list
Re: Non-deprecated equivalent of rfc822.AddressList
On Wed, 2009-09-16 at 14:49 -0400, Jason Tackaberry wrote: > Since the rfc822 module was removed in Python 3, and is deprecated in > 2.3, I am obviously trying to avoid using it. > > But I'm having a hard time finding an equivalent to rfc822.AddressList > in the email module, which I want to use to parse a _list_ of addresses: [...] > Is there some non-deprecated method I can use to parse an RFC 2822 > address list? No takers? Should I file a bug? Cheers, Jason. -- http://mail.python.org/mailman/listinfo/python-list