diff options
Diffstat (limited to 'Mailman/queue/archive.py')
| -rw-r--r-- | Mailman/queue/archive.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Mailman/queue/archive.py b/Mailman/queue/archive.py index b0274d49c..518a0a44c 100644 --- a/Mailman/queue/archive.py +++ b/Mailman/queue/archive.py @@ -20,10 +20,11 @@ from __future__ import with_statement import time + from email.Utils import parsedate_tz, mktime_tz, formatdate +from locknix.lockfile import Lock from Mailman.configuration import config -from Mailman.lockfile import LockFile from Mailman.queue import Runner @@ -67,5 +68,5 @@ class ArchiveRunner(Runner): # Always put an indication of when we received the message. msg['X-List-Received-Date'] = receivedtime # While a list archiving lock is acquired, archive the message. - with LockFile(os.path.join(mlist.full_path, 'archive.lck')): + with Lock(os.path.join(mlist.full_path, 'archive.lck')): mlist.ArchiveMail(msg) |
