On Thu, 9 Jan 1997, Timothy J Luoma wrote:
Any of you gurus out there manage to compile 'emil' (it's a mail
thing that will change MIME message types, such as changing quoted
printable to 8bit -- especially useful in procmail scripts).
[...]
I do not use email, but I do have the following at the bottom of my
recipes to convert things like Quoted-Printable. I took it straight
out of man procmailex. (Of course, it assumes mimencode is available
on your system.) FYI, if it's useful.
##################################################
# preconvert arriving plain-text in certain #
# MIME formats to a more compact 8-bit format #
##################################################
:0
* ^Content-Type: *text/plain
{
:0 fbw
* ^Content-Transfer-Encoding: *quoted-printable
| mimencode -u -q
:0 Afhw
| formail -I "Content-Transfer-Encoding: 8bit"
:0 fbw
* ^Content-Transfer-Encoding: *base64
| mimencode -u -b
:0 Afhw
| formail -I "Content-Transfer-Encoding: 8bit"
}
##################################################
# everything else falls into default inbox #
##################################################
Paul <pobart(_at_)access(_dot_)digex(_dot_)net>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key
Home Page: http://www.access.digex.net/~pobart