procmail
[Top] [All Lists]

Re: Filtering out unwanted mime attachments

1997-10-13 01:41:28
Michael Stone writes on 12 October 1997 at 20:58:52
But how much better is it to recieve 
"<b>Yes</b>, I <i>want to</i> come to the party."
instead of
"Yes, I want to come to the party."

No argument there.  But having a recipe such as
   :0
   * ^Content-Type: multipart
   /dev/null
in place (which was originally suggested) means you'll have an
inaccurate count of how many people will be attending your party.

I believe others on this list have taken the approach of sending an
auto-response message detailing how to turn off Netscape's text and
HTML multipart/alternative messages which are apparently enabled by
default.
   :0
   * ^Mime-Version:
   * ^Content-Type:[    ]*multipart/alternative
   {
     :0c
     * ! ^FROM_DAEMON
     * ! ^X-Loop: <...your unique string...>
     {
       :0fi
       | formail -rt -I "Precedence: junk" \
                     -A "X-Loop: <...your unique string...>" ;\
       echo "Please see http://www... for instructions on how to disable" ;\
       echo "multipart/alternative messages" ;\

       :0
       ! -oi -t
     }

     :0wfhb
     | extract_text_from_alternative
   }

   Dan
------------------- message is author's opinion only ------------------
J. Daniel Smith <DanS(_at_)bristol(_dot_)com>        
http://www.bristol.com/~DanS
Bristol Technology B.V.                   +31 33 450 50 50, ...51 (FAX)
Amersfoort, The Netherlands               {info,jobs}(_at_)bristol(_dot_)com