diff options
| author | Barry Warsaw | 2011-08-22 17:21:51 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-08-22 17:21:51 -0400 |
| commit | d53d2278510ad2022177391659781a4b6cf1b3ab (patch) | |
| tree | 48ad9ef9ffcddb5c9dbfe9c2b85ddc3543f80e76 /src/mailman/chains | |
| parent | 545735d6dc0efb76b88f3f0634966f97d833dc41 (diff) | |
| download | mailman-d53d2278510ad2022177391659781a4b6cf1b3ab.tar.gz mailman-d53d2278510ad2022177391659781a4b6cf1b3ab.tar.zst mailman-d53d2278510ad2022177391659781a4b6cf1b3ab.zip | |
* Moderating a message with Action.accept now sends the message. (LP: #827697)
Also:
* Use utilities.datetime.now() so that moderation related dates are
predictable during the test suite.
* When a message is accepted, drop it in the pipeline queue. The above bug
was caused by the message going in the incoming queue, and then being
re-moderated.
* Expose mailman.bin.master.Loop in __all__.
* Add some helpful debug logging.
Diffstat (limited to 'src/mailman/chains')
| -rw-r--r-- | src/mailman/chains/moderation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/chains/moderation.py b/src/mailman/chains/moderation.py index d6104fd66..fcba31f82 100644 --- a/src/mailman/chains/moderation.py +++ b/src/mailman/chains/moderation.py @@ -71,7 +71,7 @@ class ModerationChain: # moderation.py rule for details. This is stored in the metadata as a # string so that it can be stored in the pending table. action = Action[msgdata.get('moderation_action')] - # defer and accept are not valid moderation actions. + # defer is not a valid moderation action. jump_chain = { Action.accept: 'accept', Action.discard: 'discard', |
