------------------------------------------------------------ revno: 1729 fixes bug: https://launchpad.net/bugs/1734162 committer: Mark Sapiro <m...@msapiro.net> branch nick: 2.1 timestamp: Thu 2017-11-23 09:39:51 -0800 message: Ignore missing .db files when updating group and mode. modified: Mailman/MTA/Postfix.py NEWS
-- 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 'Mailman/MTA/Postfix.py' --- Mailman/MTA/Postfix.py 2017-06-06 21:44:09 +0000 +++ Mailman/MTA/Postfix.py 2017-11-23 17:39:51 +0000 @@ -56,7 +56,12 @@ if (stat[ST_MODE] & targetmode) <> targetmode: os.chmod(file, stat[ST_MODE] | targetmode) dbfile = file + '.db' - stat = os.stat(dbfile) + try: + stat = os.stat(dbfile) + except OSError, e: + if e.errno <> errno.ENOENT: + raise + return if (stat[ST_MODE] & targetmode) <> targetmode: os.chmod(dbfile, stat[ST_MODE] | targetmode) user = mm_cfg.MAILMAN_USER === modified file 'NEWS' --- NEWS 2017-11-08 20:46:23 +0000 +++ NEWS 2017-11-23 17:39:51 +0000 @@ -14,6 +14,9 @@ Bug fixes and other patches + - When updating the group and mode of a .db file with Mailman's Postfix + integration, a missing file is ignored. (LP: #1734162) + - The DELIVERY_RETRY_WAIT setting is now effective. (LP: #1729472) 2.1.25 (26-Oct-2017)
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org