1 Mar 2012 07:26
Saving attachments to disk
aitor <aitors2005 <at> gmail.com>
2012-03-01 06:26:41 GMT
2012-03-01 06:26:41 GMT
Hi, I sent this mail to mutt-users some days ago. In the past couple of days I've been hit by this behaviour (using mutt 1.5.21 compiled from scratch). Suppose that I receive a mail with several attachments: I 1 <no description> [multipa/alternativ, 7bit, 7.2K] I 2 ├─><no description> [text/plain, 7bit, iso-8859-1, 0.7K] I 3 └─><no description> [text/html, 7bit, iso-8859-1, 6.3K] A 4 file.txt [text/plain, 8bit, us-ascii, 2.3K] A 5 file.xml [text/xml, 8bit, us-ascii, 0.1K] A 6 file.pdf [text/x-(Continue reading)unknown-, base64, us-ascii, 66K] The message has 3 attachments, one text file, one xml document and one pdf document (this is a real example,the sender MUA being Thuderbird 3.1.18). It turns out that the sender MUA got it wrong, and the character encoding is wrongly set (us-ascii), but: - file.txt is utf-8 encoded - file.xml is also utf-8 encoded. - file.pdf is a pdf document. The problem is that there is no way to save these attachment properly. For instance, when saving file.xml all the non ascii characters are replaced with "?". So if file.xml originally was: <?xml version="1.0" encoding="utf-8"?> <a>©Áéñio</a>
RSS Feed