cron job to email list of pending emails
"Anne M. Hammond" <[email protected]> Thu, 11 Jun 2015 17:41:29 -0600
| Newsgroups | gmane.mail.spam.tmda.user |
|---|---|
| Message-ID | <[email protected]> |
I'm not getting notices of pending email via cron. I suspect it has to do with a zero length .pendingcache. This is for a new use where I mostly cloned my environment. His cron job executes 05 9,11,13,15,17,18 * * * /bin/sh $HOME/.tmda/tmda.sh 2> /dev/null There are 4 messages in .tmda/pending: 1434053133.26415.msg 1434056996.28754.msg 1434057706.29361.msg 1434064527.33804.msg 1434065391.36130.msg $HOME/.tmda/tmda.sh contains: $TMDA_BINDIR/tmda-pending -Cbs > /tmp/$$ if test -s /tmp/$$; then mail -s 'TMDA Pending Summary' [email protected] < /tmp/$$ fi #rm /tmp/$$ However /tmp/$$ is always zero length, and he never receives a "TMDA Pending Summary" via email. My tmda, however, works great. Any advice greatly appreciated. ------------------------------------------------------------------------------ _______________________________________________ tmda-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tmda-users