From: Matthew Lear Date: Fri, 22 Jul 2016 16:35:16 +0000 (+0100) Subject: Missing headers when forwarding html message as RFC822 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b4ec758273c92c1747ab0e2d556a77937f60bde;p=notmuch-archives.git Missing headers when forwarding html message as RFC822 --- diff --git a/9a/8230ecee9da23ffd706229f4e4c68c1d17a346 b/9a/8230ecee9da23ffd706229f4e4c68c1d17a346 new file mode 100644 index 000000000..5a11a9212 --- /dev/null +++ b/9a/8230ecee9da23ffd706229f4e4c68c1d17a346 @@ -0,0 +1,108 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 791736DE00C8 + for ; Fri, 22 Jul 2016 09:43:07 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.72 +X-Spam-Level: +X-Spam-Status: No, score=-0.72 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id iIuWKrZ0rlan for ; + Fri, 22 Jul 2016 09:42:58 -0700 (PDT) +X-Greylist: delayed 456 seconds by postgrey-1.35 at arlo; + Fri, 22 Jul 2016 09:42:57 PDT +Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) + by arlo.cworth.org (Postfix) with ESMTPS id F40C96DE014D + for ; Fri, 22 Jul 2016 09:42:57 -0700 (PDT) +Received: from webmail04.plus.net ([84.93.228.66]) by avasout07 with smtp + id MsbG1t0041SbfYc01sbGgN; Fri, 22 Jul 2016 17:35:18 +0100 +X-CM-Score: 0.00 +X-CNFS-Analysis: v=2.2 cv=UYYTc+aN c=1 sm=1 tr=0 + a=C5+YawzV8SR07mwocaP9vA==:117 a=6WEHsjNRvCJYAr8w9WnCiA==:17 + a=8nJEP1OIZ-IA:10 a=cAmyUtKerLwA:10 a=ZVOVO-DVNUd7ffEV85UA:9 +Received: from localhost ([127.0.0.1] helo=webmail.plus.net) + by webmail04.plus.net with esmtp (Exim 4.76) + (envelope-from ) id 1bQdPw-0003eu-BR + for notmuch@notmuchmail.org; Fri, 22 Jul 2016 17:35:16 +0100 +Received: from 80.82.130.242 (SquirrelMail authenticated user bubblegen+matt) + by webmail.plus.net with HTTP; Fri, 22 Jul 2016 17:35:16 +0100 +Message-ID: <5cd7f16b6435bf40b67862e29e1a516e.squirrel@webmail.plus.net> +Date: Fri, 22 Jul 2016 17:35:16 +0100 +Subject: Missing headers when forwarding html message as RFC822 +From: "Matthew Lear" +To: notmuch@notmuchmail.org +Reply-To: matt@bubblegen.co.uk +User-Agent: SquirrelMail +MIME-Version: 1.0 +Content-Type: text/plain;charset=iso-8859-1 +Content-Transfer-Encoding: 8bit +X-Priority: 3 (Normal) +Importance: Normal +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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: Fri, 22 Jul 2016 16:43:07 -0000 + +Hi, + +With notmuch built from very recent git (sha 3a45d29) it would seem that +when forwarding an HTML only message as RFC822, once received, the message +does not have any headers and notmuch-show merely displays 'Date: Thu, 01 +Jan 1970 00:00:00 +0000'. I've stripped my .emacs back to a bare minimum +configuration and the behaviour is the same. + +With a message (incidentally sent by MS Outlook) that contains the +following parts: + +[ multipart/related ] +[ text/html ] + +Once forwarded as RFC822 by notmuch and received, it is displayed by +notmuch-show as: + +[ message/rfc822 ] +Date: Thu, 01 Jan 1970 00:00:00 +0000 + +[ multipart/mixed ] +[ multipart/related ] +[ text/html ] + +While with a message that contains the following parts: + +[ multipart/mixed ] +[ text/plain ] + +Once forwarded as RFC822 by notmuch and received, it is displayed by +notmuch-show as: + +[ message/rfc822 ] +From: xxxx +Subject: xxxx +To: xxxx +Date: Fri, 15 Jul 2016 17:48:17 +0000 + +[ multipart/mixed ] +[ text/plain ] + +So the headers are missing in the first case. I'm sure this is a regression. + +Can anybody verify this? +Cheers, +-- Matt + +