[Mutt] #3305: Attachment truncated if mime-type is multipart/related
#3305: Attachment truncated if mime-type is multipart/related
----------------------+-----------------------------------------------------
Reporter: jbohm_dk | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone:
Component: mutt | Version: 1.5.18
Keywords: |
----------------------+-----------------------------------------------------
If I try to attach a file with mime-type
{{{
multipart/related; type="text/html"; boundary=whatever
}}}
Mutt throws away whatever is in the file and replaces it with a single
line of the form
{{{
--whatever--
}}}
To make this worse, the display continues to indicate the original size of
the attachment until after I send the message, leaving recipients with a
useless mail.
A debug trace (mutt -d 5) seemed to produce nothing useful.
----
Steps to reproduce:
1. Outside Mutt, create a file with a mime type of "multipart/related;
type="text/html"; boundary=whatever". Microsoft calls such files ".mhtml"
files, on UNIX they can be made using tools such as mime-construct. I
have attached a sample file to make testing easier.
2. In mutt, use the m command to start a new message, type in a test
recipient, a sample subject, and a non-empty body.
3. On the send screen, press a to attach the file from step 1.
4. Press Ctrl-T and change the mime-type to "multipart/related;
type="text/html"; boundary=galadriel" just as indicated in the header of
the .mhtml file.
5. Notice that the send screen correctly displays the file size and mime-
type as if everything is OK
6. Press y to send the mail
7. Look in the sent or received mail, and notice that the content of the
.mhtml attachment has been silently replaced by a single line consisting
of two dashes, the inner boundary string and two more dashes.
----
Mutt version 1.5.18 (2008-05-17)
Debian GNU/Linux 5.0 (lenny) package mutt 1.5.18-6
Linux 2.6.17 i586/133 MHz
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3305>
Mutt <http://www.mutt.org/>
The Mutt mail user agent