On Mon, Feb 07, 2000 at 02:04:09AM +0200, Mikko Hänninen wrote:
> Yifang Dai <[EMAIL PROTECTED]> wrote on Sun, 06 Feb 2000:
> > [-- Attachment #2: aaaeoth9.tif --]
> > [-- Type: application/octet-stream, Encoding: base64, Size: 22K --]
> 
> > I know I can use 'v' and 's' to save it to disk first, and I also know I
> > can change the attachment content type by '^E', but I want mutt to
> > recognize the correct mime types automatically and then I can just type
> > 'v' then 'enter' to launch viewfax. Is there anyway to accomplish this?
> 
> The problem isn't in the receiving (Mutt) end, but rather the sending
> end.  The sending email client should properly indicate that the file is
> of the MIME-type image/tiff.  Then Mutt will recognise it appropriately.
> 
> As a work-around, you can install a filter to handle all
> application/octet-stream type attachments.  I remember seeing one
> offered somewhere, a perl(?) script that supposedly did a fairly good
> job at handling all the various different attachments sent with a
> MIME-type like that.  I'm guessing it can probably be found linked on
> www.mutt.org.
> 
> Anyway, the above is just a work-around, not a fix to your situation.
> Fix the sending end, and your problem will go away.
> 
Thanks! I found mutt.octet.filter from

http://titan.cs.bonn.edu/~rosenfel/mutt/octet-filter

It's a shell script, I changed the ShowTIF() function from using
tiffinfo to viewfax, and it works great!

To use it, I put the following entry in my ~/.mailcap

application/octet-stream; mutt.octet.filter %s; copiousoutput

but I ignored the auto_view since I want to view the actual fax not only
the output from tiffinfo.

That's it! now when I go into the attachment, I can just press enter and
viewfax pops up :)

Yifang
> 
> Hope this helps,
> Mikko
> PS. Please use [EMAIL PROTECTED] when sending emails to the list.
> -- 
> // Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
> // The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
> // Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
> Don't talk to me about tomorrow -- I'm not even prepared for YESTERDAY yet!

-- 
---------------
Yifang Dai
Fax: (860)953-2569

Reply via email to