diff options
| author | bwarsaw | 2001-10-12 05:15:17 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-10-12 05:15:17 +0000 |
| commit | 5c56f0a40fdb351d5d331e4726bee4e3a44bc8d5 (patch) | |
| tree | ac082c264e7981f9cf154d5d9dc74c563145544f /Mailman/Handlers/ToDigest.py | |
| parent | 5ffcc420dcd62f6c43a56e7d11f18bd4f0de952d (diff) | |
| download | mailman-5c56f0a40fdb351d5d331e4726bee4e3a44bc8d5.tar.gz mailman-5c56f0a40fdb351d5d331e4726bee4e3a44bc8d5.tar.zst mailman-5c56f0a40fdb351d5d331e4726bee4e3a44bc8d5.zip | |
Diffstat (limited to 'Mailman/Handlers/ToDigest.py')
| -rw-r--r-- | Mailman/Handlers/ToDigest.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Mailman/Handlers/ToDigest.py b/Mailman/Handlers/ToDigest.py index aa55f0cf1..409d38ac9 100644 --- a/Mailman/Handlers/ToDigest.py +++ b/Mailman/Handlers/ToDigest.py @@ -330,11 +330,12 @@ def send_i18n_digests(mlist, mboxfp): mimerecips = [] drecips = mlist.getDigestMemberKeys() + mlist.one_last_digest.keys() for user in mlist.getMemberCPAddresses(drecips): - if user is None: - # It means that someone who toggled off digest delivery - # subsequently unsubscribed from the mailing list. Just ignore - # them. + # user might be None if someone who toggled off digest delivery + # subsequently unsubscribed from the mailing list. Also, filter out + # folks who have disabled delivery. + if user is None or mlist.getMemberOption(user, mm_cfg.DisableDelivery): continue + # Otherwise, decide whether they get MIME or RFC 1153 digests if mlist.getMemberOption(user, mm_cfg.DisableMime): plainrecips.append(user) else: |
