problems with multipart/mixed
Matthias Guedemann
Matthias.Guedemann at ovgu.de
Mon May 23 06:39:07 PDT 2011
> If you did then I'm in the same boat. Notmuch/emacs used to display both
welcome to the boat!
I found the reason why that happens. Basically it appears because of a
bug in the ongoing multipart development.
In my example, the problem is as follows: currently the outer multipart
message gets ID 1, the first html part ID 2, and the attachment ID 3.
This seems to be correct in the JSON output. But for whatever reason,
show in emacs does not display the html part at all and the attachment
as text/html (it is text/plain). So it seems that the show is off by 1
somewhere.
Now a quick-and-dirty way around this:
reset to c51d5b3cdb5ca0816816e88ca6f7136a24e74eee
and apply this patch:
----8<---------
diff --git a/show-message.c b/show-message.c
index ff9146e..6913d7f 100644
--- a/show-message.c
+++ b/show-message.c
@@ -30,8 +30,8 @@ show_message_part (GMimeObject *part, int *part_count,
GMimeMultipart *multipart = GMIME_MULTIPART (part);
int i;
- *part_count = *part_count + 1;
- (*show_part) (part, part_count);
+ //*part_count = *part_count + 1;
+ //(*show_part) (part, part_count);
for (i = 0; i < g_mime_multipart_get_count (multipart); i++) {
show_message_part (g_mime_multipart_get_part (multipart, i),
----8<---------
current master is already some steps further, so probably this will be
fixed in a correct way soon, but for now I'll use this.
regards
Matthias
More information about the notmuch
mailing list