[Mailman-Developers] Bug#65955: Resent-To and Resent-Cc should be considered explicit destinations. (fwd)

Gergely Madarasz gorgo@sztaki.hu
Tue, 20 Jun 2000 17:01:55 +0200 (MET DST)


A small bug, with a patch included... 

-- 
Madarasz Gergely           gorgo@sztaki.hu           gorgo@linux.rulez.org
     It's practically impossible to look at a penguin and feel angry.
         Egy pingvinre gyakorlatilag lehetetlen haragosan nezni.
                   HuLUG: http://mlf.linux.rulez.org/

---------- Forwarded message ----------
Date: Tue, 20 Jun 2000 15:09:05 +0200
From: Thomas Quinot <quinot@ada.eu.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Bug#65955: Resent-To and Resent-Cc should be considered explicit
    destinations.
Resent-Date: Tue, 20 Jun 2000 14:59:53 +0000 (GMT)
Resent-From: Thomas Quinot <quinot@ada.eu.org>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-cc: Gergely Madarasz <gorgo@sztaki.hu>

Package: mailman
Version: 1.1-6
Severity: normal

Currently, mailman only takes To: and Cc: headers into account to
determine whether a message was explicitly sent to a mailing list.
The Resent-To: and Resent-Cc: headers should be used as well. The following
patch is a proposed solution to this problem:

--- MailList.py.dist	Thu Jun  1 00:26:48 2000
+++ MailList.py	Tue Jun 20 15:04:06 2000
@@ -1118,7 +1118,8 @@
 	lowname = string.lower(self.real_name)
         recips = []
         # First check all dests against simple name:
-        for recip in msg.getaddrlist('to') + msg.getaddrlist('cc'):
+        for recip in msg.getaddrlist('to') + msg.getaddrlist('cc') \
+            + msg.getaddrlist('resent-to') + msg.getaddrlist('resent-cc'):
             curr = string.lower(string.split(recip[1], '@')[0])
 	    if lowname == curr:
 		return 1

-- System Information
Debian Release: 2.2
Architecture: sparc
Kernel: Linux marvin 2.2.14 #2 Mon Feb 21 16:52:43 CET 2000 sparc64

Versions of packages mailman depends on:
ii  apache                1.3.9-13.1         Versatile, high-performance HTTP s
ii  apache [httpd]        1.3.9-13.1         Versatile, high-performance HTTP s
ii  cron                  3.0pl1-57          management of regular background p
ii  libc6                 2.1.3-10.0.1       GNU C Library: Shared libraries an
ii  logrotate             3.2-11             Log rotation utility              
hi  postfix [mail-transpo 0.0.19991231pl05-2 A mail transport agent            
ii  python-base           1.5.2-10           An interactive object-oriented scr