Re: Selecting MIME viewer depending on file extension
Alexander Skwar wrote: Rather often I get mails with attachments where the attachment is of type application/octet-stream instead of the correct type (let's say image/png) However, the attached file still has the correct extension (eg png or PNG) i think you need either the appoct patch for mutt, or a shell script like this one: http://wwwdaveporg/mutt/muttoctetfilter there's another viewer linked from the mutt site; the URL is: http://awacsdhsorg/software/view-octet/ the debian package has the appoct patch already i'm not sure where that one is from -- Will Yardley william newdream net
Re: Selecting MIME viewer depending on file extension
On 2002-03-01 Will Yardley wrote: Alexander Skwar wrote: Rather often I get mails with attachments where the attachment is of type application/octet-stream instead of the correct type (let's say image/png). However, the attached file still has the correct extension (eg. .png or .PNG). i think you need either the appoct patch for mutt, or a shell script like this one: What does this patch do and where can I get it? Any advantages in comparison to: http://www.davep.org/mutt/mutt.octet.filter which I use? Regards, Christoph -- Christoph Maurer - D - 52072 Aachen mailto:[EMAIL PROTECTED] - http://www.christophmaurer.de On my Homepage: SuSE 7.0 on an Acer Travelmate 508 T Notebook
Re: Selecting MIME viewer depending on file extension
Christoph Maurer wrote: What does this patch do and where can I get it? i'm not sure where it's from; i put up a copy at: http://veggiechinesenet/021_patch-1324appoct2 Any advantages in comparison to: http://wwwdaveporg/mutt/muttoctetfilter i don't use either, so i can't give a comparison -- Will Yardley william newdream net
Re: Selecting MIME viewer depending on file extension
On 2002-03-01 Will Yardley wrote: Christoph Maurer wrote: What does this patch do and where can I get it? i'm not sure where it's from; i put up a copy at: http://veggiechinese.net/021_patch-1.3.24.appoct.2 Many thanks, I'll give it a try... Regards, Christoph -- Christoph Maurer - D - 52072 Aachen mailto:[EMAIL PROTECTED] - http://www.christophmaurer.de On my Homepage: SuSE 7.0 on an Acer Travelmate 508 T Notebook
Re: Selecting MIME viewer depending on file extension
On Fri, Mar 01, 2002 at 10:57:17AM +0100, Christoph Maurer wrote: On 2002-03-01 Will Yardley wrote: Alexander Skwar wrote: Rather often I get mails with attachments where the attachment is of type application/octet-stream instead of the correct type (let's say image/png). However, the attached file still has the correct extension (eg. .png or .PNG). i think you need either the appoct patch for mutt, or a shell script like this one: What does this patch do and where can I get it? As I understand it, this patch recognizes application/octet-stream attachments, finds the filename extension, uses that to look up the proper content type in the mime_types file, then continues the processing of the attachment following the rules in the mailcap file. It was written by Ulf Erikson and you can get it from his web site at http://www.geocities.com/win32mutt/patches/patch-1.2.5.uen.octet.1.txt After installing it you will also need to add this line to your muttrc: set lookup_octetstream Any advantages in comparison to: http://www.davep.org/mutt/mutt.octet.filter which I use? Yes. The mutt.octet.filter was designed to view attachments in-line, so it doesn't help with attachments requiring a graphical viewer. The patch lets you manage the viewing of octet-stream attachments with your mailcap file just as though they had been attached with the proper Content-Type, and lets you keep all your viewer rules in one place instead of two. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: Selecting MIME viewer depending on file extension
On 2002-03-01 Gary Johnson wrote: On Fri, Mar 01, 2002 at 10:57:17AM +0100, Christoph Maurer wrote: On 2002-03-01 Will Yardley wrote: Alexander Skwar wrote: Rather often I get mails with attachments where the attachment is of type application/octet-stream instead of the correct type (let's say image/png). However, the attached file still has the correct extension (eg. .png or .PNG). i think you need either the appoct patch for mutt, or a shell script like this one: What does this patch do and where can I get it? As I understand it, this patch recognizes application/octet-stream attachments, finds the filename extension, uses that to look up the proper content type in the mime_types file, then continues the processing of the attachment following the rules in the mailcap file. [...] Yes. The mutt.octet.filter was designed to view attachments in-line, so it doesn't help with attachments requiring a graphical viewer. The patch lets you manage the viewing of octet-stream attachments with your mailcap file just as though they had been attached with the proper Content-Type, and lets you keep all your viewer rules in one place instead of two. Thanks for the information. I think this patch can be very helpful. Up two now I use mutt.octet.filter which I have somewhat adapted so that I can also use it with external (graphical) viewers. Regards, Christoph -- Christoph Maurer - D - 52072 Aachen mailto:[EMAIL PROTECTED] - http://www.christophmaurer.de On my Homepage: SuSE 7.0 on an Acer Travelmate 508 T Notebook