[BUG] multipart ID of show != part

Matthias Guedemann matthias.guedemann at ovgu.de
Mon May 23 10:25:01 PDT 2011


Hi all,

I found some problems with the multipart/mixed behavior of current
master. I have several multipart mails where the html part is not
displayed and a text/plain attachment is wrongly reported as text/html. 

I have no real insight into the inner workings of notmuch-show but have
found this discrepancy between "notmuch show" and "notmuch part":

(master last commit c4e00ab69a14bfe5756056614a5fb7df8580cd33)

show produces this JSON:

^Lbody{
^Lpart{ ID: 1, Content-type: multipart/mixed
^Lpart{ ID: 2, Content-type: text/html
Non-text part: text/html
^Lpart}
^Lattachment{ ID: 3, Content-type: text/plain
Attachment: ATT00001.c (text/plain)
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe at haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
^Lattachment}
^Lpart}
^Lbody}

whereas "notmuch part --part=2" produces this (the content of the
ATT00001.c file):

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe at haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

the man page states that the part number is equal to the ID, but here
part=2 returns the content of ID=3 and therefore the wrong message
part.


regards
Matthias



More information about the notmuch mailing list