Re: [OT - Procmail] Filter UU/XXencode and HTML?

2001-04-17 Thread Thomas Ribbrock

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/~kaytanICQ#: 15839919
   "You have to live on the edge of reality - to make your dreams come true!"



Re: [OT - Procmail] Filter UU/XXencode and HTML?

2001-04-11 Thread Lars Hecking


 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.
 
 Also, I wonder how in the world shall I make procmail take a
 (optionally MIME-encoded) message with HTML and turn it into plain
 text, so I can read the thing?

 I would just bounce it straight, or delete it. Lusers who send html
 email should not be encouraged.

 My personal opinion only, of course.

 I heard something called emil would do this, but the docs aren't
 really what I'd call helpful...

 Hhm. I've played around a bit with emil, but couldn't figure out
 anything useful. Maybe metamail, or reformime (from the maildrop
 package), or a combination of those and emil might work.

 Check out the procmail archive at

  http://www.xray.mpe.mpg.de/mailing-lists/procmail/

 Html conversion was discussed only recently (March) IIRC. For the other
 question, it could be worth posting to the procmail users list directly.
 See http://www.procmail.org/.




Re: [OT - Procmail] Filter UU/XXencode and HTML?

2001-04-11 Thread Ailbhe Leamy

On (11/04/01 12:02), Lars Hecking wrote:

  Also, I wonder how in the world shall I make procmail take a
  (optionally MIME-encoded) message with HTML and turn it into plain
  text, so I can read the thing?

Pipe it through lynx -d ?

  I would just bounce it straight, or delete it. Lusers who send html
  email should not be encouraged.

I filter all content/[mixed|html|alterniatve] into a seperate folder
so that I can apply a LART as appropriate.

Ailbhe

-- 
Homepage: http://ailbhe.ossifrage.net/



Re: [OT - Procmail] Filter UU/XXencode and HTML?

2001-04-11 Thread Sam Roberts

Quoting Petri Kelottijaervi [EMAIL PROTECTED], who wrote:
 HI, it's me, who never gives answers and just asks questions here. :)
 
 Also, I wonder how in the world shall I make procmail take a
 (optionally MIME-encoded) message with HTML and turn it into plain
 text, so I can read the thing?

I do this.

~/.mailcap: text/html; lynx -localhost -dump %s ; copiousoutput ; nametemplate=%s.html

~/.muttrc: auto_view text/html

-- 
Sam Roberts [EMAIL PROTECTED]



Re: [OT - Procmail] Filter UU/XXencode and HTML?

2001-04-11 Thread Karl E. Jorgensen

On Wed, Apr 11, 2001 at 04:24:22AM +0200, Petri Kelottijaervi wrote:
 HI, it's me, who never gives answers and just asks questions here. :)
 
Hi!
 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.
 
 Also, I wonder how in the world shall I make procmail take a
 (optionally MIME-encoded) message with HTML and turn it into plain
 text, so I can read the thing?
If you just want to be able to *read* HTML mails, then an entry like this
one in your ~/.mailcap file might help:

text/html; lynx -force_html '%s'

or

text/html; mv '%s' '%s'.html  links 'file://%s.html'

Works for me. But then again I only get the occational HTML email.

Hope this helps
-- 
Karl E. Jrgensen
[EMAIL PROTECTED]
www.karl.jorgensen.com
 Today's fortune:
You will never amount to much.
-- Munich Schoolmaster, to Albert Einstein, age 10

 PGP signature


[OT - Procmail] Filter UU/XXencode and HTML?

2001-04-10 Thread Petri Kelottijaervi

HI, it's me, who never gives answers and just asks questions here. :)

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.

Also, I wonder how in the world shall I make procmail take a
(optionally MIME-encoded) message with HTML and turn it into plain
text, so I can read the thing?

I heard something called emil would do this, but the docs aren't
really what I'd call helpful...

Anyways, since this is way off-topic, I suggest that response, if
any, should be directed at me instead of the list. :)

Oh - and the webMUTT thing seems interesting. If I have time over,
maybe I'll go over the source code with a torch light and melt it down
into something webbish. :)

/petri