Vulnerability Development mailing list archives

Re: Unwanted automagic processing (Was: Re: [Q] CORBA, IIOP)


From: Liviu.Daia () IMAR RO (Liviu Daia)
Date: Sat, 11 Mar 2000 04:05:32 +0200


On 10 March 2000, Nicolas Justin <nicolas.justin () FREE FR> wrote:
Add this lines to your procmailrc
:0
  * ^Content-Type.*text/html*
  | (formail -r ; echo "You have sent a mail in HTML format, please
resend it in plain text format") | /usr/sbin/sendmail -oi -t
:0
  * ^Content-Type.*multipart/alternative*
  | (formail -r ; echo "You have sent a mail in HTML format, please
resend it in plain text format") | /usr/sbin/sendmail -oi -t

So, if you receive a mail in HTML format, it will be trashed and a
mail will be sent to the sender.

    Actually, "multipart/alternative" messages don't necessarily
contain HTML attachments, some Sun mailers f.i. send "text/plain" and
"text/enriched" alternatives.

    There are a few other problems with the above recipes.  Here's a
more realistic version:

:0 h
*     ! ^FROM_DAEMON
*  $  ! ^X-Loop: $USER@$HOST
* BH ?? ^Content-Type:[         ]+text/html\>
| (formail -rA "X-Loop: $USER@$HOST" -I "Precedence: junk"; \
         echo "You have sent a mail in HTML format, please \
resend it in plain text format.") | $SENDMAIL -oi -t

    Regards,

    Liviu Daia

--
Dr. Liviu Daia               e-mail:   Liviu.Daia () imar ro
Institute of Mathematics     web page: http://www.imar.ro/~daia
of the Romanian Academy      PGP key:  http://www.imar.ro/~daia/daia.asc



Current thread: