On Mon, Jan 24, 2000 at 12:18:50 -0500, Brolley, Michael wrote:
> When mutt reads an email from another MIME source, exchange in this case,
> the message looks like this:
> 
> X-Mailer: Internet Mail Service (5.5.2650.21)
> 
> [-- Attachment #1 --]
> [-- Type: text/plain, Encoding: 7bit, Size: 0.1K --]
> 
> Let's see what exchange sends out.
>  <<Timesheet 01-14-00.xls>>
> 
> 
> [-- Attachment #2: Timesheet 01-14-00.xls --]
> [-- Type: application/vnd.ms-excel, Encoding: base64, Size: 27K --]

I see that it's sent with the MIME type "application/vnd.ms-excel".

> [-- application/vnd.ms-excel is unsupported (use 'v' to view this part) --]
> 
> This is good on inbound mail.  I can save this attached file, and Star
> Office can use this file as an Excel spreadsheet.  No problem.

You could also add an entry for "application/vnd.ms-excel" to
your .mailcap file which allows Mutt to invoke Star Office with
the file. The mailcap fil format is explained in Mutt's manual.

> I would like for mutt to do the same for outgoing mail, but when mutt sends
> out an email with an attachment, let's say the same spreadsheet file, I get:
> 
> --EVF5PPMfhYS0aIcm
> Content-Type: text/plain; charset=us-ascii
>      
> Let mutt try sending out an attachment
>  
> --EVF5PPMfhYS0aIcm
> Content-Type: application/excel
> Content-Disposition: attachment; filename="Timesheet-01-14-00.xls"
> Content-Transfer-Encoding: base64
> 
> 0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAJgAAAAAA
> AAAAEAAA/v///wAAAAD+////AAAAACUAAAD/////////////////////////////////////
> ////////////////////////////////////////////////////////////////////////
>  
> ...
> 
> This is not good because I cannot extract this attached file back into its
> original form. 

I don't understand that. You should be able to save the file
using any mailer which understand MIME attachments.

> How do I configure mutt to send out email attachments the way Exchange,
> Netscape, Eudora, and countless other MUA's do?

Mutt gave it another MIME type than exchange. Mutt gets it
default MIME types from the file name extension (.xls) and your
mimes.types file. Add the line

application/vnd.ms-excel  xls

to your ~/.mime.types or a system wide mime.types file (again,
see Mutt's manual) and if neccessary remove a conflicting line
for the ".xls" extension.

-- 
Byrial

Reply via email to