Re: notmuch new: emails with BOM are ignored
authorAndreas Amann <a.amann@ucc.ie>
Wed, 28 May 2014 13:15:28 +0000 (14:15 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:03:03 +0000 (10:03 -0800)
21/782e21236905b005ef4480e817754f52cf49e2 [new file with mode: 0644]

diff --git a/21/782e21236905b005ef4480e817754f52cf49e2 b/21/782e21236905b005ef4480e817754f52cf49e2
new file mode 100644 (file)
index 0000000..6b4fe16
--- /dev/null
@@ -0,0 +1,90 @@
+Return-Path: <a.amann@ucc.ie>\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 2189D431FBD\r
+       for <notmuch@notmuchmail.org>; Wed, 28 May 2014 06:15:43 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 KycmYAHr+iH8 for <notmuch@notmuchmail.org>;\r
+       Wed, 28 May 2014 06:15:39 -0700 (PDT)\r
+Received: from emea01-am1-obe.outbound.protection.outlook.com\r
+       (mail-am1lp0016.outbound.protection.outlook.com [213.199.154.16])\r
+       (using TLSv1 with cipher AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 007EA431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 28 May 2014 06:15:38 -0700 (PDT)\r
+Received: from AM1FFO11FD057.protection.gbl (10.174.64.33) by\r
+       AM1FFO11HUB019.protection.gbl (10.174.64.75) with Microsoft SMTP Server\r
+       (TLS) id 15.0.949.9; Wed, 28 May 2014 13:15:32 +0000\r
+Received: from mail3.ucc.ie (143.239.1.23) by\r
+       AM1FFO11FD057.mail.protection.outlook.com (10.174.65.76) with Microsoft\r
+       SMTP Server (TLS) id 15.0.949.9 via Frontend Transport;\r
+       Wed, 28 May 2014 13:15:32 +0000\r
+Received: from msstf091.ucc.ie (msstf091.ucc.ie [143.239.76.91])\r
+       by mail3.ucc.ie (8.14.4/8.14.4) with ESMTP id s4SDFS4N019294;\r
+       Wed, 28 May 2014 14:15:29 +0100\r
+Received: by msstf091.ucc.ie (Postfix, from userid 1000)\r
+       id 63010A2E70; Wed, 28 May 2014 14:15:28 +0100 (IST)\r
+From: Andreas Amann <a.amann@ucc.ie>\r
+To: Jani Nikula <jani@nikula.org>, David Bremner <david@tethera.net>,\r
+       <notmuch@notmuchmail.org>\r
+Subject: Re: notmuch new: emails with BOM are ignored\r
+In-Reply-To: <87bnuiifn5.fsf@nikula.org>\r
+References: <874n0b4o16.fsf@msstf091.ucc.ie> <878upmn6d0.fsf@zancas.localnet>\r
+       <87bnuiifn5.fsf@nikula.org>\r
+User-Agent: Notmuch/0.18 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-unknown-linux-gnu)\r
+Date: Wed, 28 May 2014 14:15:28 +0100\r
+Message-ID: <87sinu2gen.fsf@msstf091.ucc.ie>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-EOPAttributedMessage: 0\r
+X-Forefront-Antispam-Report: CIP:143.239.1.23; CTRY:IE; IPV:NLI; IPV:NLI;\r
+       EFV:NLI; SFV:NSPM;\r
+       SFS:(6009001)(438001)(189002)(199002)(76482001)(42186004)(83506001)(50466002)(48376002)(50986999)(77982001)(4396001)(47776003)(79102001)(20776003)(99396002)(64706001)(52956003)(87936001)(86362001)(33646001)(102836001)(85852003)(83072002)(21056001)(36756003)(76176999)(54356999)(92566001)(92726001)(40036003)(44976005)(83322001)(19580405001)(46386002)(80022001)(19580395003)(46102001)(45336002)(6806004)(81542001)(81342001)(74502001)(74482001)(31966008)(74662001)(90966001);       DIR:OUT; SFP:; SCL:1; SRVR:AM1FFO11HUB019; H:mail3.ucc.ie; FPR:;        MLV:sfv;\r
+ PTR:mail3.ucc.ie; MX:1; A:0; LANG:en; \r
+X-OriginatorOrg: ucc.ie\r
+X-Forefront-PRVS: 0225B0D5BC\r
+Received-SPF: Pass (: domain of ucc.ie designates 143.239.1.23 as permitted\r
+       sender) receiver=; client-ip=143.239.1.23; helo=mail3.ucc.ie;\r
+Authentication-Results: spf=pass (sender IP is 143.239.1.23)\r
+       smtp.mailfrom=a.amann@ucc.ie; \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: Wed, 28 May 2014 13:15:43 -0000\r
+\r
+Jani Nikula <jani@nikula.org> writes:\r
+> My quick guess is that gmime stops header processing at that point, and\r
+> all the headers we require are after that invalid header. \r
+\r
+I can confirm that.  I adapted one of the example programs which comes\r
+with gmime to read out the "From" header, and it indeed was not found,\r
+because it came after the BOM.  Therefore the root of the problem is\r
+indeed with gmime not notmuch.  I will send an email to the gmime-devel\r
+list, to ask them if they consider this to be a bug. \r
+\r
+> If it were a real email and not spam, I'd be interested... this could be\r
+> intentional to trick a spam filter.\r
+\r
+quite possible.  Still a bit annoying ...\r
+\r
+Andreas\r
+\r
+\r