diff options
| author | bwarsaw | 2002-10-28 02:57:33 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-10-28 02:57:33 +0000 |
| commit | 778531fbd0024704fcccfddcc373eb3eec23ced5 (patch) | |
| tree | 5da5c739249f7dda93ecb1db255bc2ec335f7afc /cron/checkdbs | |
| parent | 1b5f3249639b0d159e43d48118bbc5d7da197c17 (diff) | |
| download | mailman-778531fbd0024704fcccfddcc373eb3eec23ced5.tar.gz mailman-778531fbd0024704fcccfddcc373eb3eec23ced5.tar.zst mailman-778531fbd0024704fcccfddcc373eb3eec23ced5.zip | |
Diffstat (limited to 'cron/checkdbs')
| -rwxr-xr-x | cron/checkdbs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cron/checkdbs b/cron/checkdbs index 6b50e2444..05d492e4e 100755 --- a/cron/checkdbs +++ b/cron/checkdbs @@ -6,14 +6,14 @@ # 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 +# along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. """Invoked by cron, this checks for pending moderation requests and mails the @@ -52,7 +52,7 @@ def _isunicode(s): def main(): for name in Utils.list_names(): # the list must be locked in order to open the requests database - mlist = MailList.MailList(name) + mlist = MailList.MailList(name) try: count = mlist.NumRequestsPending() # While we're at it, let's evict yesterday's autoresponse data @@ -87,8 +87,8 @@ def main(): msg.send(mlist, **{'tomoderators': 1}) finally: mlist.Unlock() - - + + def pending_requests(mlist): |
