diff options
| author | mailman | 1998-03-18 22:14:48 +0000 |
|---|---|---|
| committer | mailman | 1998-03-18 22:14:48 +0000 |
| commit | 09ac79afacfe209dd43f3c5459a1682b60b0083c (patch) | |
| tree | cbee7eb796608fc3e9ec421b12ea9f13c4ebb495 | |
| parent | 4f15a49e313c43e46e1645246f85de8881591abc (diff) | |
| download | mailman-09ac79afacfe209dd43f3c5459a1682b60b0083c.tar.gz mailman-09ac79afacfe209dd43f3c5459a1682b60b0083c.tar.zst mailman-09ac79afacfe209dd43f3c5459a1682b60b0083c.zip | |
Initial version.
| -rwxr-xr-x | cron/senddigests | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cron/senddigests b/cron/senddigests new file mode 100755 index 000000000..4acc7db98 --- /dev/null +++ b/cron/senddigests @@ -0,0 +1,23 @@ +#!/usr/local/bin/python +# +# This script gets called by cron. +# It goes through all the lists, dispatching the digests for those that have +# digest_send_periodic set. + +import sys, os + +sys.path.append('/home/mailman/mailman/modules') + +import maillist, mm_cfg, mm_message, mm_utils + +def main(): + + for name in mm_utils.list_names(): + list = maillist.MailList(name) + list.Unlock() + if list.digest_send_periodic: + # Send if there are any messages pending. + list.SendDigestIfAny() + +if __name__ == "__main__": + main() |
