On Wed, 2004-02-18 at 13:14, [EMAIL PROTECTED] wrote:
> >> > if I recall, pine was suggested as what I could use ?
> >>
> >> > can pine use /Maildir ?
> >>
> >> No. You should use mutt instead, for lots of reasons. :-)
> >
> > Speaking as a dedicated pine user, that sounds like blind prejudice! At
> 
> ahem, this is getting too hard for what i'm trying to achieve...
> 
> what sort of command line un-mime can I run against the /Maildir message
> file to simply detach the attachements ?

There's two answers to this that I can think of. The first is to use
mha-decode, which on my machine is part of the MHonArc-2.4.9-1mdk
package. The second is to use a small perl script. There's a perl module
called MIME::Parser which seems to be reasonably standard. To use it is
as easy as:

perl -e 'use MIME::Parser;$p=new 
MIME::Parser;$p->output_under(".");$p->extract_uuencode(1);$e=$p->parse(\*STDIN);' < 
MESSAGE

and that will create a directory under the current one that contains
each part of your mime message in a different file. You could even go
for this slightly more exotic version:

perl -e 'use MIME::Parser;$p=new 
MIME::Parser;$p->output_under(".");$p->extract_uuencode(1);$e=$p->parse(\*STDIN);$e->dump_skeleton;'
 < MESSAGE

to have it spit out a summary of each of the parts it decoded.

HTH,

James.


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to