Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C396D431FD0 for ; Mon, 23 May 2011 14:41:54 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] 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 yLdMogTAEOE6 for ; Mon, 23 May 2011 14:41:54 -0700 (PDT) Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2]) by olra.theworths.org (Postfix) with ESMTP id 3FF6A431FB6 for ; Mon, 23 May 2011 14:41:54 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id AFF0229A4F5; Mon, 23 May 2011 14:41:52 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id 5B45C254183; Mon, 23 May 2011 14:41:52 -0700 (PDT) From: Carl Worth To: Matthias Guedemann , "notmuch\@notmuchmail.org" Subject: Re: [BUG] multipart ID of show != part In-Reply-To: <87ei3pqqhe.fsf@pc44es141.cs.uni-magdeburg.de> References: <87ei3pqqhe.fsf@pc44es141.cs.uni-magdeburg.de> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Mon, 23 May 2011 14:41:47 -0700 Message-ID: <87pqn9m6w4.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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 21:41:54 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 23 May 2011 19:25:01 +0200, Matthias Guedemann wrote: > show produces this JSON: >=20 > ^Lbody{ > ^Lpart{ ID: 1, Content-type: multipart/mixed > ^Lpart{ ID: 2, Content-type: text/html ... > whereas "notmuch part --part=3D2" produces this (the content of the > ATT00001.c file): It used to be that the "multipart" containers were not printed in "notmuch show" (so they weren't counted). We recently began emitting these, and counting them, but we neglected to update the "notmuch part" code to count them equivalently. I've just pushed a quick patch to "notmuch part" to fix this problem for now. Soon, we'll have a patch series from Jameson committed that replaces the "notmuch part" command with "notmuch show --part". That will have the advantage of implementing both pieces of functionality with one piece of code, so that skew like this will no longer be possible. Thanks for the report. =2DCarl =2D-=20 carl.d.worth@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk3a1JsACgkQ6JDdNq8qSWiAUwCbBbQbW9FILtuEZbb3cdiQTvdW J5QAoIRrhkGmMw7YBb7Pe693lP7E9rBj =625N -----END PGP SIGNATURE----- --=-=-=--