summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Mailman/Pending.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mailman/Pending.py b/Mailman/Pending.py
index c5be1e3dc..bbd7bf0ef 100644
--- a/Mailman/Pending.py
+++ b/Mailman/Pending.py
@@ -98,6 +98,7 @@ def confirm(cookie, expunge=1):
# Remove the entry from the database
if expunge:
del db[cookie]
+ del db['evictions'][cookie]
_save(db)
return content
finally:
@@ -128,6 +129,10 @@ def _save(db):
# The entry is stale, so remove it.
del db[cookie]
del evictions[cookie]
+ # Clean out any bogus eviction entries.
+ for cookie in evictions.keys():
+ if not db.has_key(cookie):
+ del evictions[cookie]
db['version'] = mm_cfg.PENDING_FILE_SCHEMA_VERSION
omask = os.umask(007)
try: