Missing inlined message/rfc822 bodies?
authorKeith Packard <keithp@keithp.com>
Mon, 18 Jul 2011 08:06:05 +0000 (01:06 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:09 +0000 (09:39 -0800)
04/468cdbf9b6500815bd41c9372445e49ded102c [new file with mode: 0644]

diff --git a/04/468cdbf9b6500815bd41c9372445e49ded102c b/04/468cdbf9b6500815bd41c9372445e49ded102c
new file mode 100644 (file)
index 0000000..e5d2c46
--- /dev/null
@@ -0,0 +1,107 @@
+Return-Path: <keithp@keithp.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 16370431FD0\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Jul 2011 01:06:11 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.01\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
+       tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Gly1aLy6c7Rs for <notmuch@notmuchmail.org>;\r
+       Mon, 18 Jul 2011 01:06:09 -0700 (PDT)\r
+Received: from keithp.com (home.keithp.com [63.227.221.253])\r
+       by olra.theworths.org (Postfix) with ESMTP id EA34C431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Jul 2011 01:06:08 -0700 (PDT)\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by keithp.com (Postfix) with ESMTP id 13D52C74016\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Jul 2011 01:06:08 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at keithp.com\r
+Received: from keithp.com ([127.0.0.1])\r
+       by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024)\r
+       with LMTP id 0U7wmZ0ltRzj for <notmuch@notmuchmail.org>;\r
+       Mon, 18 Jul 2011 01:06:05 -0700 (PDT)\r
+Received: by keithp.com (Postfix, from userid 1033)\r
+       id 6C576C74015; Mon, 18 Jul 2011 01:06:05 -0700 (PDT)\r
+Received: from koto.keithp.com (localhost [127.0.0.1])\r
+       by keithp.com (Postfix) with ESMTP id 4A7C8C78007\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Jul 2011 01:06:05 -0700 (PDT)\r
+Received: by koto.keithp.com (Postfix, from userid 1488)\r
+       id 844A764275A; Mon, 18 Jul 2011 01:06:05 -0700 (PDT)\r
+From: "Keith Packard" <keithp@keithp.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: Missing inlined message/rfc822 bodies?\r
+User-Agent: Notmuch/0.6.1-66-ga900dda (http://notmuchmail.org) Emacs/23.3.1\r
+       (i486-pc-linux-gnu)\r
+Date: Mon, 18 Jul 2011 01:06:05 -0700\r
+Message-ID: <yunsjq49fo2.fsf@aiko.keithp.com>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 18 Jul 2011 08:06:11 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+\r
+I wasn't seeing anything for an inlined message/rfc822 part (as with a\r
+forwarded email message) and discovered that for some reason, the\r
+message structure wasn't as expected. The following patch appears to\r
+help me.\r
+\r
+I'm still stuck trying to use the 'v' key to display attachments from\r
+forwarded messages; it looks like mm-dissect-buffer isn't digging into\r
+the attached message and pulling the embedded attachments out or something.\r
+\r
+However, I can at least view the message and save the attachments now.\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index f96743b..402fb2c 100644\r
+=2D-- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -519,6 +519,12 @@ current buffer, if possible."\r
+     ;; message display.\r
+     (insert "\n")\r
+=20\r
++    ;;\r
++    ;; I dunno, sometimes the message part is a single element list contai=\r
+ning the plist\r
++    ;;\r
++    (if (not inner-parts)\r
++      (setq inner-parts (plist-get (car message-part) :content)))\r
++\r
+     ;; Show all of the parts.\r
+     (mapc (lambda (inner-part)\r
+           (notmuch-show-insert-bodypart msg inner-part depth))\r
+\r
+\r
+=2D-=20\r
+keith.packard@intel.com\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iD8DBQFOI+ltQp8BWwlsTdMRApJCAJ9iYyovZLnkhmx1j8R1DzOkkP1fEQCgrFTi\r
+U7fkpYn1gdkhkke1P0+JghU=\r
+=BdMu\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r