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/ |