summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcron/archive18
1 files changed, 18 insertions, 0 deletions
diff --git a/cron/archive b/cron/archive
new file mode 100755
index 000000000..800cfaf19
--- /dev/null
+++ b/cron/archive
@@ -0,0 +1,18 @@
+#!/usr/local/bin/python
+#
+# This script gets called by cron.
+# It updates the archive for all mailing lists.
+
+
+import sys
+
+sys.path.append('/home/mailman/mailman/modules')
+
+import maillist, mm_cfg
+
+list_name = sys.argv[1]
+
+
+list = maillist.MailList(list_name)
+list.UpdateArchive()
+list.Unlock()