discard old pending posts

Bug #557989 reported by tkikuchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
High
Unassigned

Bug Description

This short script will help you to discard old pending
posts.
I put it in cron dir and run daily with this crontab entry:
55 7 * * * /usr/local/bin/python -S
/home/mailman/cron/auto_discard | mail mailman-owner

I hope this idea is integrated in cron/checkdb. (sorry
I have no time to work now)

Revision history for this message
tkikuchi (tkikuchi-users) wrote :

The file auto_discard was added: auot_discard

Revision history for this message
ven-x (ven-x-users) wrote :

Logged In: YES
user_id=646258

Thank ya! worked perfect!

Thank you

Revision history for this message
bwarsaw (bwarsaw) wrote :

Logged In: YES
user_id=12800

This would be cool to add to cron/checkdbs. Here are some ideas

- either have a MAX_REQUEST_AGE value in Defaults.py or a
max_request_age attribute on lists if you want this to be
different per-list (which might be a good idea since this is
dependent on how often the list admins clear their pendings)

- in the checkdbs message, keep a record of how many old
ones you expire and mention it in the user notification. e.g.

17 old requests automatically expired.

I'll mark this as for MM2.1 group, but it's really going to
be pushed back until the following release.

Revision history for this message
bwarsaw (bwarsaw) wrote :

Logged In: YES
user_id=12800

Upping the priority

Revision history for this message
tkikuchi (tkikuchi-users) wrote :

Logged In: YES
user_id=67709

closing this patch in favor of #790494.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.