summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormailman1998-03-18 22:14:48 +0000
committermailman1998-03-18 22:14:48 +0000
commit09ac79afacfe209dd43f3c5459a1682b60b0083c (patch)
treecbee7eb796608fc3e9ec421b12ea9f13c4ebb495
parent4f15a49e313c43e46e1645246f85de8881591abc (diff)
downloadmailman-09ac79afacfe209dd43f3c5459a1682b60b0083c.tar.gz
mailman-09ac79afacfe209dd43f3c5459a1682b60b0083c.tar.zst
mailman-09ac79afacfe209dd43f3c5459a1682b60b0083c.zip
Initial version.
-rwxr-xr-xcron/senddigests23
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()