aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2013-11-01 09:50:24 -0700
committerMark Sapiro <mark@msapiro.net>2013-11-01 09:50:24 -0700
commit27f70ecc8aca813cf6724a54422746bbcdc0556e (patch)
tree8db9fc34294023aae2da7a512a5f5ebc001bc689
parent2be3678296dfe921fc9cf4a2cd3a8ed71fdd4232 (diff)
downloadmailman2-27f70ecc8aca813cf6724a54422746bbcdc0556e.tar.gz
mailman2-27f70ecc8aca813cf6724a54422746bbcdc0556e.tar.xz
mailman2-27f70ecc8aca813cf6724a54422746bbcdc0556e.zip
Fixed contrib/qmail-to-mailman.py to work with a user other than
'mailman' and to recognize more listname-* addresses. (LP: #412293)
Diffstat (limited to '')
-rwxr-xr-xNEWS3
-rw-r--r--contrib/qmail-to-mailman.py10
2 files changed, 11 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index d7cb9b85..7c76ca40 100755
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,9 @@ Here is a history of user visible changes to Mailman.
Bug Fixes and other patches
+ - Fixed contrib/qmail-to-mailman.py to work with a user other than
+ 'mailman' and to recognize more listname-* addresses. (LP: #412293)
+
- Fixed a possible UnicodeDecodeError in bin/sync_members. (LP: #1243343)
- Fixed Makefile to not include $DESTDIR in paths compiled into .pyc
diff --git a/contrib/qmail-to-mailman.py b/contrib/qmail-to-mailman.py
index 3e4e19d5..8c95a1d3 100644
--- a/contrib/qmail-to-mailman.py
+++ b/contrib/qmail-to-mailman.py
@@ -64,7 +64,8 @@ def main():
sys.exit(100)
local = string.lower(local)
- local = re.sub("^mailman-","",local)
+ user = os.environ.get('USER', 'mailman')
+ local = re.sub('^%s-' % user, '', local)
names = ("root", "postmaster", "mailer-daemon", "mailman-owner", "owner",
"abuse")
@@ -77,10 +78,15 @@ def main():
type = "post"
types = (("-admin$", "bounces"),
("-bounces$", "bounces"),
+ ("-bounces[-+].*$", "bounces"),
+ ("-confirm$", "confirm"),
+ ("-confirm[-+].*$", "confirm"),
("-join$", "join"),
("-leave$", "leave"),
("-owner$", "owner"),
- ("-request$", "request"))
+ ("-request$", "request"),
+ ("-subscribe$", "subscribe"),
+ ("-unsubscribe$", "unsubscribe"))
for i in types:
if re.search(i[0],local):