On Wed, 12 Jan 2011, Werner Spirk wrote: > > Hello Mark, > > I put in your patch and it works !!
That was mine: the test was sent to an open list sorry -- it didn't do here the diffs ( are the patches correct?): diff Message.py Message.py.orig 1c1 < # Copyright (C) 1998-2011 by the Free Software Foundation, Inc. --- > # Copyright (C) 1998-2009 by the Free Software Foundation, Inc. 154,156c154 < # Actually, just get the raw header as one line in case the < # decoded words contain a comma. < fieldval = Utils.oneline(fieldval, 'us-ascii', raw=True) --- > fieldval = Utils.oneline(fieldval, 'us-ascii') 212c210 < fieldvals = [Utils.oneline(fv, 'us-ascii', raw=True) --- > fieldvals = [Utils.oneline(fv, 'us-ascii') diff Utils.py U.orig UserDesc.py Utils.py Utils.py.orig UserDesc.pyc Utils.pyc Utils.py.roig lxmhs42 mailman/Mailman> diff Utils.py Utils.py.orig 1c1 < # Copyright (C) 1998-2011 by the Free Software Foundation, Inc. --- > # Copyright (C) 1998-2010 by the Free Software Foundation, Inc. 889,892c889 < def oneline(s, cset, raw=False): < if raw: < # Just return the header as one line without decoding < return EMPTYSTRING.join(s.splitlines()) --- > def oneline(s, cset): Werner > > Thank you very much > > Werner > > > > On Tue, 11 Jan 2011, Mark Sapiro wrote: > > > Werner Spirk wrote: > > > > > > > >Mails sent from outlook exchange will not be sent to a closed list > > >when there is a German umlaut within the name like > > > > > >From: =?iso-8859-1?Q?Mai=2C_G=FCnter?= <[email protected]> > > > > > >in general: > > > > > >Mail sent > > >From: =?iso-8859-1?Q?Surname=2C_Givenname?= <[email protected]> > > > > > >causes an undeliverable message by mailman sent to > > >[email protected], if the list in a closed list: > > > > > > It is not the umlaut that causes the problem. It is the comma. > > > > > > >Outlook Exchange goes conform with RFC 2047 . > > > > > > You are correct, but this is tricky. The intent of RFC 2047 section 5, > > rule 3 is that an encoded word such as > > =?iso-8859-1?Q?Mai=2C_G=FCnter?= when used as the real name portion of > > an address will not contain any of the characters which are not > > allowed unquoted in this context, and this is true of that encoded > > word. > > > > However, Mailman looks at the From: header, and because of the way it > > processes this, it sees an ascii decoded header value which looks like > > 'Mai, G?nter <[email protected]>'. It then parses this and gets two > > email addresses, 'mai' and '[email protected]' because of the > > unquoted comma. > > > > For some purposes, such as determining whether a post is from a list > > member, Mailman considers all the addresses and will determine that > > this is from a list member if '[email protected]' is a member, but > > if the post is held for some reason such as '[email protected]' is > > moderated, the notice to the user will be sent to only the first > > address 'mai' which is invalid. > > > > So, yes, you are correct that Mailman is not doing the right thing here. > > > > I've developed a patch that I think will fix this without any other > > side effects. I've attached that as rfc2047.patch.txt. Please try this > > patch and see if it solves your problems. > > > > -- > > Mark Sapiro <[email protected]> The highway is for gamblers, > > San Francisco Bay Area, California better use your sense - B. Dylan > > > > > > > +--------------------------------------------------------------------+ > | Werner Spirk . . Tel.: +49 89 35831 8707 | > | Leibniz-Rechenzentrum (_) (_) Fax : +49 89 35831 8507 | > | Boltzmannstr. 1 | | | | | > | 85748 Garching |o| |o| Email: [email protected] | > | | |/\| | | > | Deutschland bei München http://www.lrz.de/~spirk/ | > +--------------------------------------------------------------------+ > +--------------------------------------------------------------------+ | Werner Spirk . . Tel.: +49 89 35831 8707 | | Leibniz-Rechenzentrum (_) (_) Fax : +49 89 35831 8507 | | Boltzmannstr. 1 | | | | | | 85748 Garching |o| |o| Email: [email protected] | | | |/\| | | | Deutschland bei München http://www.lrz.de/~spirk/ | +--------------------------------------------------------------------+ ------------------------------------------------------ Mailman-Users mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
