Re: Missing headers when forwarding html message as RFC822
authorMatthew Lear <matt@bubblegen.co.uk>
Mon, 25 Jul 2016 16:12:36 +0000 (17:12 +0100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:22:15 +0000 (16:22 -0700)
f5/c118fb3ed0b4cdaf6a4941fd3512705d186559 [new file with mode: 0644]

diff --git a/f5/c118fb3ed0b4cdaf6a4941fd3512705d186559 b/f5/c118fb3ed0b4cdaf6a4941fd3512705d186559
new file mode 100644 (file)
index 0000000..adb7ebe
--- /dev/null
@@ -0,0 +1,158 @@
+Return-Path: <matt@bubblegen.co.uk>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 74A256DE0217\r
+ for <notmuch@notmuchmail.org>; Mon, 25 Jul 2016 09:12:52 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.72\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.72 tagged_above=-999 required=5 tests=[AWL=0.000, \r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id cWg9oo2p7Ylr for <notmuch@notmuchmail.org>;\r
+ Mon, 25 Jul 2016 09:12:44 -0700 (PDT)\r
+Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id E49566DE01BE\r
+ for <notmuch@notmuchmail.org>; Mon, 25 Jul 2016 09:12:43 -0700 (PDT)\r
+Received: from localhost ([84.93.237.194]) by avasout07 with smtp\r
+ id P4Cc1t0034CLSd8014Cdnk; Mon, 25 Jul 2016 17:12:39 +0100\r
+X-CM-Score: 0.00\r
+X-CNFS-Analysis: v=2.2 cv=UYYTc+aN c=1 sm=1 tr=0\r
+ a=VrPob/PGR4vzCiwW53VWbQ==:117 a=VrPob/PGR4vzCiwW53VWbQ==:17\r
+ a=8nJEP1OIZ-IA:10 a=cAmyUtKerLwA:10 a=pGLkceISAAAA:8 a=80hmnl3cAAAA:8\r
+ a=7343-z1_AAAA:8 a=LzgKLvs8mV-g9NOyoUAA:9 a=6kGIvZw6iX1k4Y-7sg4_:22\r
+ a=G-y4FhfbluXncOafXg4t:22 a=TIilloDGjzTra_O4aUnR:22\r
+Received: from localhost ([127.0.0.1] helo=webmail.plus.net)\r
+ by localhost with esmtp (Exim 4.76)\r
+ (envelope-from <matt@bubblegen.co.uk>)\r
+ id 1bRiUe-0001aP-7b; Mon, 25 Jul 2016 17:12:36 +0100\r
+Received: from 80.82.130.242 (SquirrelMail authenticated user bubblegen+matt)\r
+ by webmail.plus.net with HTTP; Mon, 25 Jul 2016 17:12:36 +0100\r
+Message-ID: <1ba40e0005007f5ba5a82ebb26f34062.squirrel@webmail.plus.net>\r
+In-Reply-To: <B79EEECE-417D-4CED-8E4E-393E87C3AFE9@bubblegen.co.uk>\r
+References: <5cd7f16b6435bf40b67862e29e1a516e.squirrel@webmail.plus.net>\r
+ <87k2gchjia.fsf@qmul.ac.uk>\r
+ <B79EEECE-417D-4CED-8E4E-393E87C3AFE9@bubblegen.co.uk>\r
+Date: Mon, 25 Jul 2016 17:12:36 +0100\r
+Subject: Re: Missing headers when forwarding html message as RFC822\r
+From: "Matthew Lear" <matt@bubblegen.co.uk>\r
+To: "Mark Walters" <markwalters1009@gmail.com>\r
+Cc: notmuch@notmuchmail.org\r
+Reply-To: matt@bubblegen.co.uk\r
+User-Agent: SquirrelMail\r
+MIME-Version: 1.0\r
+Content-Type: text/plain;charset=iso-8859-1\r
+Content-Transfer-Encoding: 8bit\r
+X-Priority: 3 (Normal)\r
+Importance: Normal\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 25 Jul 2016 16:12:52 -0000\r
+\r
+>> Also what version of emacs are you running? I think all the rfc822\r
+>> forwarding is handled by emacs/gnus message-mode\r
+\r
+I'm running 24.5-r2\r
+\r
+> Hi Mark. I will do, but would you mind sending me one of your test\r
+> messages? At least that way, I can test against something that is 'known\r
+> working'.\r
+> Thanks,\r
+>   Matt\r
+>\r
+>> On 23 Jul 2016, at 08:59, Mark Walters <markwalters1009@gmail.com>\r
+>> wrote:\r
+>>\r
+>>\r
+>> Hi\r
+>>\r
+>> I have tried several cases, including generating a message with just the\r
+>> two parts [ multipart/related ] [ text/html ] and forwarding that, and\r
+>> they all work for me. Can you provide a test message where it fails?\r
+>>\r
+>> Also what version of emacs are you running? I think all the rfc822\r
+>> forwarding is handled by emacs/gnus message-mode\r
+>>\r
+>> Best wishes\r
+>>\r
+>> Mark\r
+>>\r
+>>\r
+>>\r
+>>> On Fri, 22 Jul 2016, Matthew Lear <matt@bubblegen.co.uk> wrote:\r
+>>> Hi,\r
+>>>\r
+>>> With notmuch built from very recent git (sha 3a45d29) it would seem\r
+>>> that\r
+>>> when forwarding an HTML only message as RFC822, once received, the\r
+>>> message\r
+>>> does not have any headers and notmuch-show merely displays 'Date: Thu,\r
+>>> 01\r
+>>> Jan 1970 00:00:00 +0000'. I've stripped my .emacs back to a bare\r
+>>> minimum\r
+>>> configuration and the behaviour is the same.\r
+>>>\r
+>>> With a message (incidentally sent by MS Outlook) that contains the\r
+>>> following parts:\r
+>>>\r
+>>> [ multipart/related ]\r
+>>> [ text/html ]\r
+>>>\r
+>>> Once forwarded as RFC822 by notmuch and received, it is displayed by\r
+>>> notmuch-show as:\r
+>>>\r
+>>> [ message/rfc822 ]\r
+>>> Date: Thu, 01 Jan 1970 00:00:00 +0000\r
+>>>\r
+>>> [ multipart/mixed ]\r
+>>> [ multipart/related ]\r
+>>> [ text/html ]\r
+>>>\r
+>>> While with a message that contains the following parts:\r
+>>>\r
+>>> [ multipart/mixed ]\r
+>>> [ text/plain ]\r
+>>>\r
+>>> Once forwarded as RFC822 by notmuch and received, it is displayed by\r
+>>> notmuch-show as:\r
+>>>\r
+>>> [ message/rfc822 ]\r
+>>> From: xxxx\r
+>>> Subject: xxxx\r
+>>> To: xxxx\r
+>>> Date: Fri, 15 Jul 2016 17:48:17 +0000\r
+>>>\r
+>>> [ multipart/mixed ]\r
+>>> [ text/plain ]\r
+>>>\r
+>>> So the headers are missing in the first case. I'm sure this is a\r
+>>> regression.\r
+>>>\r
+>>> Can anybody verify this?\r
+>>> Cheers,\r
+>>> --  Matt\r
+>>>\r
+>>>\r
+>>> _______________________________________________\r
+>>> notmuch mailing list\r
+>>> notmuch@notmuchmail.org\r
+>>> https://notmuchmail.org/mailman/listinfo/notmuch\r
+>\r
+\r
+\r
+\r
+\r