[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Are two pipes allowed in recipe?
- To: Martin Mokrejs <mmokrejs@natur.cuni.cz>
- Subject: Re: Are two pipes allowed in recipe?
- From: era eriksson <era@iki.fi>
- Date: Fri, 10 Sep 1999 22:25:56 +0300 (EET DST)
- In-Reply-To: <Pine.OSF.4.10.9909101708010.10423-100000@prfdec.natur.cuni.cz>
- References: <14297.4750.479666.465516@sirppi.helsinki.fi><Pine.OSF.4.10.9909101708010.10423-100000@prfdec.natur.cuni.cz>
On Fri, 10 Sep 1999 17:14:26 +0200 (MET DST), Martin Mokrejs
<mmokrejs@natur.cuni.cz> wrote:
> most often when mails sent from Outlook Express in quoted-printable in
> CP-1250 encoding, it leaves these sign at the end of line(note the space):
>
> =
> =20
>
> This I wanted to remove by the sed part in my script.
You should convert it to another content-transfer-encoding and my
solution will do that, and like I pointed out merely snipping the
parts you +don't+ like is not enough; if you want to convert it into
something else (and preserve the MIME integrity of the message) you
need to convert +all+ parts of the quoted-printable encoding, and
change the Content-Transfer-Encoding header accordingly.
My script filters the entire body, which is a catastrophe on multipart
messages. You want to take care not to run those through it at all (or
adjust it so it handles each part separately).
Correct handling of a multipart is to handle each part as if it was a
separate message, more or less. I have been thinking about how to do
this in Procmail and I think it would be feasible, but it would also
be a bit of a mess. Get a "real" MIME converter if you want to do it
right is my advice.
> So you are right, convert from 8bit to 7bit, remove html, vcards etc.
> Would you somehow modify your proposed script sent earlier? TIA.
Clarification: content-transfer-encoding is very much a 7bit encoding,
converting it to cp1252 will +make+ it 8bit. The reason for having
data in QP is that it's "safe" and converting it to an 8bit format is
probably "unsafe" for some clients (but they're dead on today's
Internet anyway so I wouldn't worry much about them).
/* era */
--
Too much to say to fit into this .signature anyway: <http://www.iki.fi/era/>
Fight spam in Europe: <http://www.euro.cauce.org/> * Sign the EU petition