On Wed, Apr 11, 2001 at 04:24:22AM +0200, Petri Kelottijaervi wrote:
> This time, I'm wondering how to convert XX/UU-encoded stuff (which,
> after what I've noted, can be difficult in MUTT when some broken
> mailer was there before) into proper MIME attachments.
emil[0] is your friend. Once you've installed it, you can use the following
procmail receipes as examples. They mightn't do exactly what you want, but
maybe they point you in the right direction. I've been using them for ages
with success, though they're certainly all but perfect... :-}
#
# Convert SUN mailtool attachments to MIME:
#
#
# Paranoia: Make backup of original mail
:0c
* ^Content-Type: x-sun
BAK.sun-attach
# convert mail
:0 fw
* ^Content-Type: x-sun
| emil -G mime8_user
#
# Convert MS Exchange attachments to MIME:
#
:0
* ^X-Mailer: Internet Mail Service
{
# Paranoia: Make backup of original mail
:0 Bc
* ^begin
BAK.MS-attach
# convert mail
:0 fBw
* ^begin
| ${EMIL} -G mime8_user
}
The usual disclaimer applies: If it breaks, you get to keep all pieces.
HTH,
Thomas
[0] the original home page (http://www.uu.se/emil) doesn't work anymore -
you can search for emil-2.1.0 on Google - a quick search brought up
hints to RPMs, Debian packages and *BSD stuff.
--
-----------------------------------------------------------------------------
Thomas Ribbrock http://mutt.linuxatwork.at (mutt RPMs)
http://www.bigfoot.com/~kaytan ICQ#: 15839919
"You have to live on the edge of reality - to make your dreams come true!"