diff options
Diffstat (limited to 'Mailman/Handlers/ToDigest.py')
| -rw-r--r-- | Mailman/Handlers/ToDigest.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Mailman/Handlers/ToDigest.py b/Mailman/Handlers/ToDigest.py index b93efe7a5..d735cd690 100644 --- a/Mailman/Handlers/ToDigest.py +++ b/Mailman/Handlers/ToDigest.py @@ -99,7 +99,8 @@ def send_digests(mlist, mboxfp): now = time.localtime(time.time()) freq = mlist.digest_volume_frequency if freq == 0 and timetup[0] < now[0]: - bump = 1 # Yearly + # Yearly + bump = 1 elif freq == 1 and timetup[1] <> now[1]: # Monthly, but we take a cheap way to calculate this. We assume # that the clock isn't going to be reset backwards. @@ -113,12 +114,11 @@ def send_digests(mlist, mboxfp): weeknum_now = int(time.strftime('%W', now)) if weeknum_now > weeknum_last or timetup[0] > now[0]: bump = 1 - elif timetup[7] <> now[7]: - # assume daily + elif freq == 4 and timetup[7] <> now[7]: + # Daily bump = 1 if bump: - mlist.volume += 1 - mlist.next_digest_number = 1 + mlist.bump_digest_volume() mlist.digest_last_sent_at = time.time() # Wrapper around actually digest crafter to set up the language context # properly. All digests are translated to the list's preferred language. |
