munpack has trouble with duplicate filenames.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mpack (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have a mail with one attachment, a text/plain description and a text/html description. Both are encoded quoted printable.
munpack then decides to use tempdesc.txt as the filename for both. Then when the second "create" fails, it deletes it, before the first instance tries to rename the temporary file to the final name. So I end up with zero copies of this part of the message !
Here are the headers of the offending sections:
--_=_swift_
Content-Type: multipart/
boundary=
--_=_swift_
Content-Type: text/plain; charset=utf-8
Content-
--_=_swift_
Content-Type: text/html; charset=utf-8
Content-
This is on 20.04
mpack:
Installed: 1.6-8.2
Candidate: 1.6-8.2
Version table:
*** 1.6-8.2 500
500 http://
100 /var/lib/
* I expected it to provide me with both versions of the message text, getting either one would've been better than neither.
* I would have wanted it to provide me with each part of the message in a separate file, allowing my script to further handle each part as appropriate.
* The good news: In the case at hand I was going to ignore BOTH missing message/parts, I'm only interested in the third... :-)
This project seems orphaned. I couldn't find upstream sources.