[PATCH 1 of 3] mail: add parseaddrlist() function for parsing many addresses at once

Greg Ward greg-hg at gerg.ca
Wed Nov 4 16:20:38 CST 2009


On Wed, Nov 4, 2009 at 12:53 PM, Marti Raudsepp <marti at juffo.org> wrote:
> # HG changeset patch
> # User Marti Raudsepp <marti at juffo.org>
> # Date 1257354800 -7200
> # Node ID 484219b7eb6062804d663ddac40dabfbd75f8acc
> # Parent  5858117a007732940a71ac2b2e035d086d8320c3
> mail: add parseaddrlist() function for parsing many addresses at once
>
> Adds a new function addrlistencode() to mercurial.mail, like addressencode(),
> but accepts a list of addresses as input, and returns a list of formatted
> addresses. This will be used by patchbomb.
>
> The difference is that each element in the input list can contain multiple
> addresses (comma separated or otherwise), and are split using Python's
> email.Utils.getaddresses().

Did you test that that library works equally well in Python 2.4, 2.5, and 2.6?

Greg



More information about the Mercurial-devel mailing list