Re: pre-announce exmh-2.7.2

Brent Welch <[email protected]>
Newsgroups gmane.mail.exmh.devel
Message-ID <[email protected]>
>>>Justin Mason said:

 > > Mops -> More -> Save/Extract Attachments
 > > which uses exmh-strip to pull attachments into a directory.
 > > By default this is ~/attachments, and there is a MIME
 > > preference to change that.
 > 
 > If that dir doesn't exist, I get a nasty
 > 
 >   no files matched glob pattern "~/attachments"

Hmm - the code has a "file mkdir" in there to ensure the
directory exists.  Oops - I see what the problem is.

 > error :(   might be nicer to create it silently?
 > Once I create that dir, though, it doesn't seem to work -- not sure
 > why.
 > 
 > Running exmh-strip directly from the command-line on a test mail
 > with an image/gif attachment, I get:
 > 
 > : jm 1100...; ./exmh-strip ~/Mail/sent/252 ~/attachments
 > MH anno forw
 > MH inplace forw
 > MH anno repl
 > MimeTypes text/plain text/richtext text/enriched multipart      
multipart/di
     gest multipart/parallel multipart/alternative       
application/octet-stre
     am message/external-body message/rfc822   text/rfc822-headers 
message/samp
     le message/news image application/pgp text/pgp multipart/x-tioga 
text/x-ht
     ml text/html  application/x-shell-script      audio/basic 
audio/x-sunaudio
      application/x-suncalendar  message/delivery-status 
message/disposition-no
     tification        application/x-pgp-message       application/pgp-keys 

     application/fv-infohaus         multipart/signed multipart/encrypted   
 mu
     ltipart/report        application/x-url       application/msword 
applicati
     on/pdf      application/postscript  application/x-frame 
application/x-fram
     emaker    application/x-interleaf application/msword      
application/x-lo
     tus application/x-lotus-123     application/x-wordmarc 
application/x-wordp
     erfect
 > Loaded Img version 1.3
 > 
 > Then it exits with a code of 0, but there's nothing in ~/attachments.
 > (does it rely on a "Content-Disposition" header being present?  the test
 > doesn't have that, being sent with mhn.)

It looks for a filename parameter in the content-type header.
If you can think of ways to make exmh-strip more clever about
chosing names, let me know.

--
Brent Welch
Software Architect, Panasas Inc
Delivering the premier storage system for scalable Linux clusters

www.panasas.com
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.