On 2000.09.28, in <[EMAIL PROTECTED]>,
        "Emmanuel Anne" <[EMAIL PROTECTED]> wrote:
> I had a look at the docs, but could not find a way to handle bad
> attachements ie : jpeg images attached as "application/octet-stream"
> insted of "image/jpeg".
> 
> Does someone know a way to view them directly instead of first saving
> them on the disk ???

Obviously you're going to have to tell Mutt what kind of attachment
you're dealing with, or else a command to process it with.  You can use
'v' to go into theattachments list, and pipe individual attachments to
a program.  If you have a script that will feed stdin to xv (or
whatever), you can pipeto that script.

Or, if you want to automate more, you can pipe to a program that takes
the content-type on the command line, and uses metamail to invoke the
correct viewer no matter what.  Then you can set up macros, one for
each kind of data you receive as octet-stream, that will try viewing
the attachment as a single type.

OR, you can write a script that saves the stdin to a tmp file, use
"file" to determine what kind of data is in it, and invokes metamail on
the corresponding content-type.

-- 
 -D.    [EMAIL PROTECTED]        NSIT    University of Chicago

Reply via email to