------------------------------------------------------------
revno: 1431
fixes bug: https://launchpad.net/bugs/412293
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Fri 2013-11-01 09:50:24 -0700
message:
Fixed contrib/qmail-to-mailman.py to work with a user other than
'mailman' and to recognize more listname-* addresses. (LP: #412293)
modified:
NEWS
contrib/qmail-to-mailman.py
--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1
Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'NEWS'
--- NEWS 2013-10-29 20:24:47 +0000
+++ NEWS 2013-11-01 16:50:24 +0000
@@ -19,6 +19,9 @@
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
=== modified file 'contrib/qmail-to-mailman.py'
--- contrib/qmail-to-mailman.py 2003-02-08 07:14:13 +0000
+++ contrib/qmail-to-mailman.py 2013-11-01 16:50:24 +0000
@@ -64,7 +64,8 @@
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 @@
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):
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org