Converting HTML and MIME to plain text mail

Chip Marshall chip at 2bithacker.net
Tue Oct 7 19:18:50 EDT 2008


On Oct 7, 2008, at 12:08, Ben Scott wrote:
> * Decode BASE64 or quoted-printable to 7-bit clean plain text
> * Replace any common Unicode characters with ASCII equivilents
> * Replace unhandled non-ASCII characters with an ASCII text
>   representation
> * When a plain text body alternative is provided, strip any other body
>   alternatives
> * Render HTML to plain text, when only an HTML body is provided
> * Strip any remaining MIME headers

Assuming the user cared about PGP signed messages, one might want to
devise a filter to convert PGP MIME messages into clear ASCII
signatures.

-- 
Chip Marshall <chip at 2bithacker.net>
http://weblog.2bithacker.net/          KB1QYW        PGP key ID 43C4819E
v4sw5PUhw4/5ln5pr5FOPck4ma4u6FLOw5Xm5l5Ui2e4t4/5ARWb7HKOen6a2Xs5IMr2g6CM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20081007/27cfc8aa/attachment.bin 


More information about the gnhlug-discuss mailing list