Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My header from mutt and msmtp setup looks like the following

From an.address@gmail.com Fri Dec 10 12:10:20 2010
Date: Fri, 10 Dec 2010 12:10:20 -0500
From: Philippe Harewood <an.address@gmail.com>
To: {0xFACEB00C>>2 in decimal}@fb.com
Subject: hoppity
Message-ID: <20101210171020.GA40317@firstname-lastname-macbook.local>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="LZvS9be/3tNcYl/X"
Content-Disposition: inline
User-Agent: Mutt/1.5.20 (2009-06-14)
Status: RO
Content-Length: 898
Lines: 58

I know how to change the content-disposition for attachments (using ^D) but the one above I cannot seem to remove or change. Why is it there ? and how can I remove it ?

share|improve this question
    
Possibly since the content-type is listed as multipart/mixed, it is expecting the content-disposition to be inline. –  Daisetsu Dec 10 '10 at 23:34
    
@Daisetsu I am not sure though could you explain this ? because I was looking at Gmail headers when sent through gmail.com and there is no such field listed at the top. Only in the attachments. –  phwd Dec 10 '10 at 23:43
add comment

1 Answer 1

up vote 1 down vote accepted

Mutt (as of 1.5.20) always writes a Content-Disposition header when it writes a MIME header. For the toplevel part of a multipart message or a non-multipart message, I think the Content-Disposition is always inline.

While not having full control over a header is annoying (to a mutt user), I wonder why you'd want to change it. If you have a multipart message and don't want to show any part inline, setting each part to attachment should be enough (provided the recipient's MUA handles Content-Disposition as written, which is not always the case). If you have a single-part message but don't want the body to be shown by default, this doesn't correspond to common email habits — I wouldn't expect many MUAs to handle this case.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.