[Bug 680447] Re: parts of recipients adresses between square brackets in are interpreted as seperate addresses
Mark Sapiro
mark at msapiro.net
Sat Dec 4 20:49:36 CET 2010
There's not much Mailman can easily do about this. The issue is in the
Python email library. email.utils.getaddresses() is used by Mailman to
get a list of addresses and the length of that list is used as the
number of recipients. getaddresses() treats the brackets as a kind of
delimiter. Thus, email.utils.getaddresses(['jefke
[jefke2 at foo.example.net]']) returns this list of (name, address) tuples
[('', 'jefke'), ('', ''), ('', 'jefke2 at foo.example.net'), ('', '')] of
length 4 instead of the list [('jefke', 'jefke2 at foo.example.net')] of
length 1 that you expect.
Escaping the brackets as you suggest changes the result only in that a
'\' is appended to the jefke2 at foo.example.net address returned in the
third tuple.
** Changed in: mailman
Importance: Undecided => Low
** Changed in: mailman
Status: New => Won't Fix
** Changed in: mailman
Assignee: (unassigned) => Mark Sapiro (msapiro)
--
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.
https://bugs.launchpad.net/bugs/680447
Title:
parts of recipients adresses between square brackets in are interpreted as seperate addresses
More information about the Mailman-coders
mailing list