[Mailman-Users] rare problem
Jesús Oliván
Jesus.Olivan at uab.es
Fri Jul 13 10:22:39 CEST 2007
Thanks for your help, but problem still persists:
i'm trying to send a test mail from cmd line, with a from that's not
suscribed to list "prova-rest-l" but it's included in authorized senders
pattern (*@uab.es):
/opt/mailman/mail/mailman post prova-rest-l < correu.txt
correu.txt:
-----------
Return-Path: <prova at uab.cat>
Received: from tvenezia.uab.es ([127.0.0.1])
by tvenezia.uab.es (Sun Java System Messaging Server 6.1 HotFix 0.10 (built
Jan 6 2005)) id <0JKN00M01L79UU00 at tvenezia.uab.es>
(original mail from prova at uab.cat) for prova-rest-l at llistes.uab.es; Wed,
04 Jul 2007 13:57:09 +0200 (CEST)
Received: from tvenezia.uab.es ([127.0.0.1])
by tvenezia.uab.es (Sun Java System Messaging Server 6.1 HotFix 0.10 (built
Jan 6 2005)) with ESMTP id <0JKN0035KL77ME00 at tvenezia.uab.es> for
prova-rest-l at llistes.uab.es; Wed, 04 Jul 2007 13:57:08 +0200 (CEST)
Received: from [158.109.164.123] by tvenezia.uab.es
(Sun Java System Messaging Server 6.1 HotFix 0.10 (built Jan 6 2005))
with ESMTPS id <0JKN00G0OL765Z00 at tvenezia.uab.es> for
prova-rest-l at llistes.uab.es; Wed, 04 Jul 2007 13:57:06 +0200 (CEST)
Date: Wed, 04 Jul 2007 13:57:02 +0200
From: =?ISO-8859-1?Q?test12345=E16789-12345=E16789-12345=E16789-12345=E16?=
=?ISO-8859-1?Q?789-12345=E16789-?= <prova at uab.cat>
Subject: tttt
To: prova-rest-l at llistes.uab.es
Message-id: <468B8B0E.2000503 at uab.cat>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit
User-Agent: Thunderbird 2.0.0.4 (Windows/20070604)
tttt
--------------
we greatly appreciate your help :)
Mark Sapiro escribió:
> Jesús Oliván wrote:
>
>
>> We've got this mailman version in a production environment and users
>> that are not suscribed to a list cannot publish any message and the
>> worst fact is that sender cannot know if his message has been sended,
>> cause "From" address doesn't exist. Is there any modification we can do
>> (some code inside a function) to patch this little bug?
>>
>
>
> The workaround is rev 984 at
> <http://codebrowse.launchpad.net/~mailman-coders/mailman/2.1/changes>.
>
> The patch is also attached to this message.
>
>
> ------------------------------------------------------------------------
>
> === modified file 'Mailman/Message.py'
> --- Mailman/Message.py 2006-03-06 18:21:52 +0000
> +++ Mailman/Message.py 2007-06-29 21:24:32 +0000
> @@ -1,4 +1,4 @@
> -# Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
> +# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
> #
> # This program is free software; you can redistribute it and/or
> # modify it under the terms of the GNU General Public License
> @@ -127,6 +127,10 @@
> fieldval = self[h]
> if not fieldval:
> continue
> + # Work around bug in email 2.5.8 (and ?) involving getaddresses()
> + # from multi-line header values. Note that cset='us-ascii' is OK
> + # since the address itself can't be RFC 2047 encoded.
> + fieldval = Utils.oneline(fieldval, 'us-ascii')
> addrs = email.Utils.getaddresses([fieldval])
> try:
> realname, address = addrs[0]
> @@ -180,6 +184,10 @@
> else:
> fieldvals = self.get_all(h)
> if fieldvals:
> + # See comment above in get_sender() regarding
> + # getaddresses() and multi-line headers
> + fieldvals = [Utils.oneline(fv, 'us-ascii')
> + for fv in fieldvals]
> pairs.extend(email.Utils.getaddresses(fieldvals))
> authors = []
> for pair in pairs:
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------
> Mailman-Users mailing list
> Mailman-Users at python.org
> http://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
> Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
> Unsubscribe: http://mail.python.org/mailman/options/mailman-users/jesus.olivan%40uab.es
>
> Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
>
More information about the Mailman-Users
mailing list