From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0D2E5431FD0 for ; Mon, 23 May 2011 10:25:04 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rseMjncFRqDk for ; Mon, 23 May 2011 10:25:03 -0700 (PDT) Received: from mail.uni-magdeburg.de (mail.uni-magdeburg.de [141.44.1.10]) by olra.theworths.org (Postfix) with ESMTP id 52393431FB6 for ; Mon, 23 May 2011 10:25:03 -0700 (PDT) Received: from pc44es141.cs.uni-magdeburg.de ([141.44.32.169]:38554) by mail.uni-magdeburg.de with esmtp (EXIM Version 4.69) id 1QOYsG-0003Pt-IP; Mon, 23 May 2011 19:25:02 +0200 From: Matthias Guedemann To: "notmuch\@notmuchmail.org" Subject: [BUG] multipart ID of show != part User-Agent: Notmuch/0.5-103-gc51d5b3 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Mon, 23 May 2011 19:25:01 +0200 Message-ID: <87ei3pqqhe.fsf@pc44es141.cs.uni-magdeburg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scan-Signature: a5b546456033b0c2695077fb2a7b3655 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2011 17:25:04 -0000 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