summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2000-07-27 06:41:12 +0000
committerbwarsaw2000-07-27 06:41:12 +0000
commitb414ddbdf51999afb5cf4dd68a9f4f5b318caceb (patch)
treeb83253077ca01e189d8589f0316f7403519379e9
parent041003d937e4d3fee4f3d9b2486e4e4be64a8f52 (diff)
downloadmailman-b414ddbdf51999afb5cf4dd68a9f4f5b318caceb.tar.gz
mailman-b414ddbdf51999afb5cf4dd68a9f4f5b318caceb.tar.zst
mailman-b414ddbdf51999afb5cf4dd68a9f4f5b318caceb.zip
process(): Because this module modifies the message object, set the
_dirty flag so the text will be forced to disk in the event of an Enqueue().
-rw-r--r--Mailman/Handlers/Cleanse.py3
-rw-r--r--Mailman/Handlers/CookHeaders.py4
-rw-r--r--Mailman/Handlers/Decorate.py3
3 files changed, 10 insertions, 0 deletions
diff --git a/Mailman/Handlers/Cleanse.py b/Mailman/Handlers/Cleanse.py
index 408602a77..7d9f6056d 100644
--- a/Mailman/Handlers/Cleanse.py
+++ b/Mailman/Handlers/Cleanse.py
@@ -36,3 +36,6 @@ def process(mlist, msg, msgdata):
del msg['x-confirm-reading-to']
# pegasus mail uses this one... sigh
del msg['x-pmrqc']
+ # Mark the message as dirty so that its text will be forced to disk next
+ # time it's queued.
+ msgdata['_dirty'] = 1
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py
index e66e7d02e..43c338bb3 100644
--- a/Mailman/Handlers/CookHeaders.py
+++ b/Mailman/Handlers/CookHeaders.py
@@ -103,3 +103,7 @@ def process(mlist, msg, msgdata):
# List-Archive
# List-Software
# X-Listserver
+ #
+ # Mark the message as dirty so that its text will be forced to disk next
+ # time it's queued.
+ msgdata['_dirty'] = 1
diff --git a/Mailman/Handlers/Decorate.py b/Mailman/Handlers/Decorate.py
index 4f364b864..6192b0353 100644
--- a/Mailman/Handlers/Decorate.py
+++ b/Mailman/Handlers/Decorate.py
@@ -40,3 +40,6 @@ def process(mlist, msg, msgdata):
syslog('error', 'Exception while calculating message footer:\n%s' % e)
footer = '[INVALID FOOTER]'
msg.body = header + msg.body + footer
+ # Mark the message as dirty so that its text will be forced to disk next
+ # time it's queued.
+ msgdata['_dirty'] = 1