diff options
Diffstat (limited to 'cron')
| -rw-r--r-- | cron/Makefile.in | 2 | ||||
| -rwxr-xr-x | cron/crontab.in.in | 3 | ||||
| -rw-r--r-- | cron/run_queue | 31 |
3 files changed, 35 insertions, 1 deletions
diff --git a/cron/Makefile.in b/cron/Makefile.in index 3d0c9863e..04dff3b42 100644 --- a/cron/Makefile.in +++ b/cron/Makefile.in @@ -43,7 +43,7 @@ CRONDIR= $(prefix)/cron SHELL= /bin/sh SCRIPTS= archive checkdbs crontab.in mailpasswds senddigests \ -upvolumes_monthly upvolumes_yearly gate_news +upvolumes_monthly upvolumes_yearly gate_news run_queue # Modes for directories and executables created by the install # process. Default to group-writable directories but diff --git a/cron/crontab.in.in b/cron/crontab.in.in index c8246d5f0..c2c776127 100755 --- a/cron/crontab.in.in +++ b/cron/crontab.in.in @@ -11,3 +11,6 @@ # if you don't want to allow gating, or don't have any going on right now, # or want to exclusively use a callback strategy instead of polling. 0,5,10,15,20,25,30,35,40,45,50,55 * * * * @PYTHON@ @prefix@/cron/gate_news + +# Every 1/2 hour flush the outgoing mail queue. +12,42 * * * * @PYTHON@ @prefix@/cron/run_queue
\ No newline at end of file diff --git a/cron/run_queue b/cron/run_queue new file mode 100644 index 000000000..4fafc1140 --- /dev/null +++ b/cron/run_queue @@ -0,0 +1,31 @@ +#! /usr/bin/env python +# +# Copyright (C) 1998 by the Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# NOTE: This is being deprecated since mailman has been shifted over to an +# external archiver (ie, andrew kuchling's latest version of pipermail.) +# +# This script gets called by cron. +# It updates the archive for all mailing lists with update-frequency equal +# to or greater than the specified archive level. + + +import sys +import paths +from Mailman import OutgoingQueue + +OutgoingQueue.processQueue() |
