unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [BUG] multipart ID of show != part
@ 2011-05-23 17:25 Matthias Guedemann
  2011-05-23 17:51 ` Daniel Kahn Gillmor
  2011-05-23 21:41 ` Carl Worth
  0 siblings, 2 replies; 4+ messages in thread
From: Matthias Guedemann @ 2011-05-23 17:25 UTC (permalink / raw)
  To: notmuch@notmuchmail.org

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@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@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-24 10:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-23 17:25 [BUG] multipart ID of show != part Matthias Guedemann
2011-05-23 17:51 ` Daniel Kahn Gillmor
2011-05-23 21:41 ` Carl Worth
2011-05-24 10:07   ` Matthias Guedemann

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).