Timothy J. Luoma writes on 21 August 1997 at 12:26:44
On Thu, 21 Aug 1997, Eli the Bearded wrote:
I autobounce blank email.
How?
Here's what I do....
Dan
-----
#####
##### catch empty messages
#####
:0Whc:empty.lock
* !^FROM_DAEMON
* $!^X-Loop: ${UNIQUE_NAME}
* $!${VACA_SUBJECT}
* B ?? ^^( | |$)*^^
| expired -t4h .empty.cache "${SENDER}"
# if the name was not in the cache, prevent lots of replies if there
# are mail problems somewhere
:0 ehc
{
# 'i' flag not really needed since the message is empty anyway
:0fi
| formail -rt -I "Precedence: junk" -A "X-Loop: ${UNIQUE_NAME}" ;\
echo "This is just to let me know that the message you sent" ;\
echo "to ${TO_LINE} about ${SUBJECT}" ;\
echo "was empty and thus has automatically been deleted." ;\
echo "You may want to double-check to ensure that a mail-related" ;\
echo "problem did not occur somewhere." ;\
echo "" ;\
echo "Thanks," ;\
echo " Dan" ;\
cat ${HOME}/.signature
:0
! -oi -t
}
# 'A' - not dependent on cache test
:0A
/dev/null