summaryrefslogtreecommitdiff
path: root/Mailman/ListAdmin.py
diff options
context:
space:
mode:
authorbwarsaw2001-07-30 23:11:22 +0000
committerbwarsaw2001-07-30 23:11:22 +0000
commit2fa825be7b71fa0792343f0ead29dac7996f1df9 (patch)
tree9323c6aecf92878c5d4f2c77a264ec5115b4bfc6 /Mailman/ListAdmin.py
parent47b33cf8d05757549236159248fe5096711a7f94 (diff)
downloadmailman-2fa825be7b71fa0792343f0ead29dac7996f1df9.tar.gz
mailman-2fa825be7b71fa0792343f0ead29dac7996f1df9.tar.zst
mailman-2fa825be7b71fa0792343f0ead29dac7996f1df9.zip
Diffstat (limited to 'Mailman/ListAdmin.py')
-rw-r--r--Mailman/ListAdmin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py
index d7e5ebe0b..2f43c9004 100644
--- a/Mailman/ListAdmin.py
+++ b/Mailman/ListAdmin.py
@@ -158,6 +158,10 @@ class ListAdmin:
assert rtype == SUBSCRIPTION
status = self.__handlesubscription(data, value, comment)
if status:
+ # BAW: Held message ids are linked to Pending cookies, allowing
+ # the user to cancel their post before the moderator has approved
+ # it. We should probably remove the cookie associated with this
+ # id, but we have no way currently of correlating them. :(
del self.__db[id]
def HoldMessage(self, msg, reason, msgdata={}):
@@ -198,6 +202,7 @@ class ListAdmin:
msgsubject = msg.get('subject', _('(no subject)'))
data = time.time(), sender, msgsubject, reason, filename, msgdata
self.__db[id] = (HELDMSG, data)
+ return id
def __handlepost(self, record, value, comment, preserve, forward, addr):
# For backwards compatibility with pre 2.0beta3