Rick Mann <[EMAIL PROTECTED]> writes:

> > You're handling your pending queue incorrectly.  Don't treat it like
> > your mailbox.  Instead, only _release_ legitimate messages.  Leave the
> > rest alone; they will get purged automatically after the timeout
> > interval expires (default of 14 days).
> 
> Therein lies the problem. In a matter of days I will have over 1000 messages
> in my pending queue. It takes way too long to go through all of these
> messages, using either tmda-pending or tmda-cgi.

In my crontab:

0 20 * * * tmda-pending -Cbs 2>&1 | mail -E -s "TMDA pending summary" [EMAIL PROTECTED]

Every day at 8:00 in the evening I send myself a summary report of the
day's pending contents.  The 'C' flag causes the messages that
tmda-pending sees to be noted in an on-disk cache.  tmda-pending will
not include those messages in the next summary.  Thus, I only see the
most recent day's messages and nothing that I've looked at before.  It
doesn't take that long to scan one day's messages.

The -E is a BSD'ism that keeps 'mail' from sending empty messages.  I
get spam every day, so I don't think it has ever kicked in. :-(


Tim
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to