diff options
| author | bwarsaw | 2001-07-30 23:11:22 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-07-30 23:11:22 +0000 |
| commit | 2fa825be7b71fa0792343f0ead29dac7996f1df9 (patch) | |
| tree | 9323c6aecf92878c5d4f2c77a264ec5115b4bfc6 /Mailman/ListAdmin.py | |
| parent | 47b33cf8d05757549236159248fe5096711a7f94 (diff) | |
| download | mailman-2fa825be7b71fa0792343f0ead29dac7996f1df9.tar.gz mailman-2fa825be7b71fa0792343f0ead29dac7996f1df9.tar.zst mailman-2fa825be7b71fa0792343f0ead29dac7996f1df9.zip | |
Diffstat (limited to 'Mailman/ListAdmin.py')
| -rw-r--r-- | Mailman/ListAdmin.py | 5 |
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 |
