procmail
[Top] [All Lists]

Remove parts of a message (MIME attachment)?

1996-03-23 11:36:17
A few of the mailing lists I receive have recently contained lots of
messages from loser^H^H^H^H^H^H individuals who apparently use
Microsoft Mail or some other similar mail program. These messages will
contain a MIME attachment towards the end of the message, something
like this:

------ =_NextPart_000_01BB1736.819C5640
Content-Type: application/ms-tnef
Content-Transfer-Encoding: base64

eJ8+IjcTAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAENgAQAAgAAAAIAAgABBJAG
AEABAAABAAAADAAAAAMAADADAAAACwAPDgAAAAACAf8PAQAAAFMAAAAAAAAAgSsfpL6jEBmdbgDd
AQ9UAgAAAABUaGUgUXVhcmsgRXhwcmVzcyBMaXN0AFNNVFAAUVVBUktYUFJASVVCVk0uVUNTLklO
<... spare you the rest ... :->

The purpose of the attachment seems to be to transfer rich-text
features of the message to users of compatible reader programs (or
something vaguely like that).
  What I was wondering is, has somebody written a Procmail filter to
zap these attachments from incoming mail? Not the whole message, just
remove the attachment? (Naturally, writing an external Perl filter
would be a snap, but I suppose it would be doable in Procmail itself?)

/* era */

Sure, I could get a MIME-savvy mail reader, but it still bothers me
that 50% of my precious quota should be filled with unreadable
garbage.

-- 
See <http://www.ling.helsinki.fi/~reriksso/> for mantra, disclaimer, etc.

<Prev in Thread] Current Thread [Next in Thread>