diff options
| author | Barry Warsaw | 2015-12-19 17:23:56 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2015-12-19 17:23:56 -0500 |
| commit | f2620c6f41c1703e7dce1a44a6669e01aaee326d (patch) | |
| tree | dbfb5667adc20d540b9897f972346f03007e2af9 /src/mailman/handlers/to_digest.py | |
| parent | 9f14de31ec1f78a2f2847d7a2c9b8efb775adab9 (diff) | |
| download | mailman-f2620c6f41c1703e7dce1a44a6669e01aaee326d.tar.gz mailman-f2620c6f41c1703e7dce1a44a6669e01aaee326d.tar.zst mailman-f2620c6f41c1703e7dce1a44a6669e01aaee326d.zip | |
Diffstat (limited to 'src/mailman/handlers/to_digest.py')
| -rw-r--r-- | src/mailman/handlers/to_digest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/handlers/to_digest.py b/src/mailman/handlers/to_digest.py index fa3f624be..89e1acaea 100644 --- a/src/mailman/handlers/to_digest.py +++ b/src/mailman/handlers/to_digest.py @@ -44,8 +44,9 @@ class ToDigest: def process(self, mlist, msg, msgdata): """See `IHandler`.""" - # Short circuit for non-digestable messages. - if not mlist.digestable or msgdata.get('isdigest'): + # Short-circuit if digests are not enabled or if this message already + # is a digest. + if not mlist.digests_enabled or msgdata.get('isdigest'): return # Open the mailbox that will be used to collect the current digest. mailbox_path = os.path.join(mlist.data_path, 'digest.mmdf') |
