Strip HTML
Joseph Brennan
brennan at columbia.edu
Fri Jun 2 10:17:26 EDT 2006
>> Shaun Bolling wrote:
>> > Hello All, can Sieve strip the html from an email and if not
>> > whats the best way to go about this?
In the sendmail world this sounds like a milter function. It can
be done by Mimedefang for example.
I don't see anything in the sieve protocol that provides for
changing message content. The available actions are reject,
fileinto, redirect, keep, discard.
By the way, you need to define the functionality a little better.
Do you mean drop all text/html parts and deliver the rest? That
will result sometimes in empty messages. Or rewrite text/html
parts into plain text? In most cases that will get you two
text/plain parts. More likely you want to proceed conditionally
on whether there is a text/plain alternative and whether that
alternative has the same content (some do not).
This might even be most appropriately done by the client. IMP
for example by default displays the text/plain part if available
and otherwise no text, and the user has to click to see the
text/html part. That's nice because you can still see the html
when you want to.
Joseph Brennan
Columbia University Information Technology
More information about the Info-cyrus
mailing list