Re: html filtering
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, Aug 02, 2002 at 04:10:48PM -0300, Marcelo Chiapparini wrote:
> it is possible to filter away any html file attached to a message using
> procmail?
(Modify to suit, what follows is a portion of my .procmailrc)
PATH=/usr/bin:/bin:/usr/local/bin:.
MAILDIR=$HOME/mail
DEFAULT=/var/mail/baloo
LOGFILE=$HOME/maillog
LOCKFILE=$HOME/.lockmail
# Explain to HTML senders why I'm not even bothering.
:0 B
* ^Content-Type:.text/html*
* !^X-Loop: MAILER-DAEMON@ursine.dyndns.org
| (formail -rk -i "From: MAILER-DAEMON@ursine.dyndns.org" -A "X-Loop: MAILER-DAEMON@ursine.dyndns.org";\
cat ~/text/html ) | $SENDMAIL -t -oi
You can just as easily replace everything from the | on with simply
/dev/null and you'll never see or hear from it again.
~/text/html contains the following...
Your message was in, or contained, HTML. Mail sent by HTML will not
be considered for reading. Sending in HTML is resource intensive
often consuming far more resources than necissary to get the job done,
and assumes that the recipient's mail reader is braindamaged enough to
parse potentially bugged HTML in this day and age.
Please disable HTML in your mail program before attempting to resend
your message. If you need help, please see
http://www.expita.com/nomime.html
This is an automated response, no human has seen your message.
- --
Baloo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9S5WNNtWkM9Ny9xURAkN2AJkBdy+0UFmKZZkFse1EJ/C+azSDLQCggAOv
EMLITYVt+++rt2n9KH2jFkw=
=sBez
-----END PGP SIGNATURE-----
Reply to: