------------------------------------------------------------
revno: 1158
committer: Mark Sapiro <[email protected]>
branch nick: 2.2
timestamp: Sat 2011-04-16 09:38:47 -0700
message:
Changed bin/genaliases to only call the POSTFIX_*_CMD commands once when
MTA = 'Postfix'. Bug #266408.
modified:
Mailman/MTA/Postfix.py
NEWS
bin/genaliases
--
lp:mailman/2.2
https://code.launchpad.net/~mailman-coders/mailman/2.2
Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'Mailman/MTA/Postfix.py'
--- Mailman/MTA/Postfix.py 2010-05-10 22:42:56 +0000
+++ Mailman/MTA/Postfix.py 2011-04-16 16:38:47 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2008 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2011 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
@@ -235,7 +235,10 @@
_do_create(mlist, ALIASFILE, _addlist)
if mlist and mlist.host_name in mm_cfg.POSTFIX_STYLE_VIRTUAL_DOMAINS:
_do_create(mlist, VIRTFILE, _addvirtual)
- _update_maps()
+ # bin/genaliases is the only one that calls create with nolock = True.
+ # Use that to only update the maps at the end of genaliases.
+ if not nolock:
+ _update_maps()
finally:
if lock:
lock.unlock(unconditionally=True)
=== modified file 'NEWS'
--- NEWS 2011-04-14 23:23:39 +0000
+++ NEWS 2011-04-16 16:38:47 +0000
@@ -108,6 +108,9 @@
Bug Fixes and other patches
+ - Changed bin/genaliases to only call the POSTFIX_*_CMD commands once when
+ MTA = 'Postfix'. Bug #266408.
+
- Added a report of the affected members to the warnings issued when
setting a list with digest members digestable=No and when setting a list
with non-digest members nondigestable=no. Bug #761232.
=== modified file 'bin/genaliases'
--- bin/genaliases 2010-05-30 21:19:22 +0000
+++ bin/genaliases 2011-04-16 16:38:47 +0000
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 2001-2003 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2011 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
@@ -113,8 +113,10 @@
# Be verbose for only the first printed list
quiet = True
finally:
+ lock.unlock(unconditionally=True)
+ # Postfix has not been updating the maps. This call will do it.
+ MTA.create(None, quiet=True)
os.umask(omask)
- lock.unlock(unconditionally=True)
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org