MIME Module fails to decode mail correctly?
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4309
Reported by Thomas Bopp, Uni-GH Paderborn astra@upb.de
When sending a mail with attachements using apples mail application and the mail body itself is html the following problem occurs: The mail is not decoded correctly. One attachements is empty and an image is missing (see the attached mail message).
Pike v7.6 release 86 running Hilfe v3.5 (Incremental Pike Frontend)
> MIME.Message msg = MIME.Message(Stdio.read_file("message.txt"));
> msg->body_parts;
(1) Result: ({ /* 2 elements */
MIME.Message(),
MIME.Message()
})
> msg->body_parts[0]->getdata();
(2) Result: "test\r\n\r\n\357\277\274"
> msg->body_parts[1]->getdata();
(3) Result: ""