Dealing with unwanted mail

Bouncing loser mail
Let's say that you're still being annoyed by that jgross character and you not only want to delete their mail but also bounce mail back to them saying that you're ignoring their mail. Procmail and formail are only too happy to oblige.

# This recipe will generate an autoreply header and bounce this nastygram back
# to the sender.
# Note the lack of a c flag which means that we never see this mail.

:0
* ^From:.* jgross@.*
| (formail -brt ; \
  echo "I'm ignoring your mail becuase you're a loser." ;\
  echo "Your letter was automatically rejected." ;\
  echo "Go away or I shall taunt you again." ;\
  echo ""; \
  echo "                                 -me" ;\
  ) | $SENDMAIL -oi -t

Back: vacation with procmail Top Next: Running your own mailing lists

j g r o s s @ s t i m p y . n e t