<<< Date Index >>>     <<< Thread Index >>>

Re: Viewing MS Office Attachments in the console



On 2006-01-20 at 10:54 -0500, Dave Waxman wrote:
> On Jan 20 16:45, Phil Pennock wrote:
> > Given the propensity for some mail-clients to attach stuff without an
> > informative MIME type, you'll probably also want to put something in the
> > list of types which mutt will use your local mime.types for, to override
> > the provided type; so:
> > 
> > ~/.muttrc:
> >  mime_lookup application/octet-stream
> > 
> > That feature was added during the 1.3 development series.
> 
> I am not sure I understand exactly what this does, can you explain it a
> bit further?

Sure.

Given a mail-client which is, uhm, "less than fully aware of its
responsibilities for providing useful MIME information", you're going to
end up with mails containing such useful MIME type information as:

 Content-Type: application/octet-stream;
         name="My Shiny Impressive Resume.doc"
 Content-Disposition: attachment;
         filename="My Shiny Impressive Resume.doc"


With "mime_lookup application/octet-stream", mutt will ignore the bogus
type and look at the name; the .doc extension should be somewhere in
your mime.types file, in an entry like:

 application/msword   doc dot

At this point, mutt will then treat the attachment just as if it had
come in with application/msword set.

(Mutt will use both the instances of the filename there, and the last
 one in the header section wins)

It's an elegant way to work around the fact that some other mail clients
suck _significantly_ more than mutt.  ;^)
-- 
I am keeping international relations on a peaceable footing.
You are biding your time before acting.
He is coddling tyrants.
 -- Roger BW on topic of verb conjugation