Jade Rubick <[EMAIL PROTECTED]> writes: > Here's the command in my crontab: > > /usr/local/bin/python2.2 /usr/local/tmda-0.59/bin/tmda-pending -sbdO > 20d | /bin/mail -s "TMDA deleted from pending" [EMAIL PROTECTED] > > /dev/null 2>&1 > > It seems like a lot of messages which I actually received and were > quite legitimate were deleted.
All messages older than 20 days will be deleted, given your crontab command. This is how tmda-pending operates. > I thought the messages that were confirmed would be removed from the > pending directory, so they wouldn't show up on the crontab email that > I receive. Is my understanding of this incorrect? Apparently :) Messages, whether confirmed or unconfirmed, are never deleted from pending unless you explicitly do so, such as from your crontab entry, above. > Is there a way to do what I'm trying to do? Looking at tmda-pending -h > and the online documentation doesn't seem to explain this. You can do it in two steps... First, run this command: $ tmda-pending -bsO 20d That will show you all undelivered messages older than 20 days, where "undelivered" means that they have not been confirmed and you did not release them by hand. As soon as a message is released, TMDA considers it delivered. Then run your delete command: $ tmda-pending -qbdO 20d which will delete all messages older than 20 days, not just undelivered ones, and will keep quiet this time (no summary). If you want the summary for this run also, just change the 'q' back to an 's'. Tim _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
