summaryrefslogtreecommitdiff
path: root/Mailman/queue
diff options
context:
space:
mode:
authorBarry Warsaw2007-10-31 17:38:51 -0400
committerBarry Warsaw2007-10-31 17:38:51 -0400
commitf321d85d91a370294e771dbaa22493008d78dfdd (patch)
tree8cf4c3e7cab70ccc9059f147ff1bf4b3bf150115 /Mailman/queue
parent1ad73a52bb9d82ef3af1e34ad9ef66ac2eda2909 (diff)
downloadmailman-f321d85d91a370294e771dbaa22493008d78dfdd.tar.gz
mailman-f321d85d91a370294e771dbaa22493008d78dfdd.tar.zst
mailman-f321d85d91a370294e771dbaa22493008d78dfdd.zip
Diffstat (limited to 'Mailman/queue')
-rw-r--r--Mailman/queue/archive.py5
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)