Takes the output from tmda-pending, and creates a list of messages for deletion based on how many times the sender name or subject is duplicated according to a configurable threshold. Optionally calls tmda-pending to do the deletion itself.
I wrote this because I'm sick of getting spam bombs of dozens of messages, the
result of which is I delete the entire pending queue instead of reviewing it.
(A better option would be for TMDA to intelligently handle this itself.)
Requires 'subprocess.py' included with Python 2.4. (Otherwise it works with
Python 2.3, if you add that modules to site-packages)
I am cronning it daily. No extensive testing thus far. Seems to work. YMMV.
Dave
----
# tmda_purgedups.py --help
usage: Usage: tmda_purgedups.py [options] file|dir ...
options:
--version show program's version number and exit
-h, --help show this help message and exit
-v, --verbose Verbose output enabled.
-s, --summary Print summary at completion to stderr.
-FFROM_MIN, --from-min=FROM_MIN
Minmum "From" duplicates required to count.
-SSUBJECT_MIN, --subject-min=SUBJECT_MIN
Minmum "Subject" duplicates required to count.
-T, --tmda-delete Call tmda pending directly to delete messages instead
of
printing them.
-B, --blacklist If deleting directly, also Blacklist message sender.
-p, --pretend Do not actually delete messages.
-----
tmda_purgedups.py
Description: application/python
_____________________________________________ tmda-users mailing list ([email protected]) http://tmda.net/lists/listinfo/tmda-users
