From: Andreas Amann Date: Wed, 28 May 2014 13:15:28 +0000 (+0100) Subject: Re: notmuch new: emails with BOM are ignored X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a05ab87f1b5829f85ab0781d05b1cbce1b5bdafb;p=notmuch-archives.git Re: notmuch new: emails with BOM are ignored --- diff --git a/21/782e21236905b005ef4480e817754f52cf49e2 b/21/782e21236905b005ef4480e817754f52cf49e2 new file mode 100644 index 000000000..6b4fe1664 --- /dev/null +++ b/21/782e21236905b005ef4480e817754f52cf49e2 @@ -0,0 +1,90 @@ +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 2189D431FBD + for ; Wed, 28 May 2014 06:15:43 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 KycmYAHr+iH8 for ; + Wed, 28 May 2014 06:15:39 -0700 (PDT) +Received: from emea01-am1-obe.outbound.protection.outlook.com + (mail-am1lp0016.outbound.protection.outlook.com [213.199.154.16]) + (using TLSv1 with cipher AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 007EA431FB6 + for ; Wed, 28 May 2014 06:15:38 -0700 (PDT) +Received: from AM1FFO11FD057.protection.gbl (10.174.64.33) by + AM1FFO11HUB019.protection.gbl (10.174.64.75) with Microsoft SMTP Server + (TLS) id 15.0.949.9; Wed, 28 May 2014 13:15:32 +0000 +Received: from mail3.ucc.ie (143.239.1.23) by + AM1FFO11FD057.mail.protection.outlook.com (10.174.65.76) with Microsoft + SMTP Server (TLS) id 15.0.949.9 via Frontend Transport; + Wed, 28 May 2014 13:15:32 +0000 +Received: from msstf091.ucc.ie (msstf091.ucc.ie [143.239.76.91]) + by mail3.ucc.ie (8.14.4/8.14.4) with ESMTP id s4SDFS4N019294; + Wed, 28 May 2014 14:15:29 +0100 +Received: by msstf091.ucc.ie (Postfix, from userid 1000) + id 63010A2E70; Wed, 28 May 2014 14:15:28 +0100 (IST) +From: Andreas Amann +To: Jani Nikula , David Bremner , + +Subject: Re: notmuch new: emails with BOM are ignored +In-Reply-To: <87bnuiifn5.fsf@nikula.org> +References: <874n0b4o16.fsf@msstf091.ucc.ie> <878upmn6d0.fsf@zancas.localnet> + <87bnuiifn5.fsf@nikula.org> +User-Agent: Notmuch/0.18 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-unknown-linux-gnu) +Date: Wed, 28 May 2014 14:15:28 +0100 +Message-ID: <87sinu2gen.fsf@msstf091.ucc.ie> +MIME-Version: 1.0 +Content-Type: text/plain +X-EOPAttributedMessage: 0 +X-Forefront-Antispam-Report: CIP:143.239.1.23; CTRY:IE; IPV:NLI; IPV:NLI; + EFV:NLI; SFV:NSPM; + 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; + PTR:mail3.ucc.ie; MX:1; A:0; LANG:en; +X-OriginatorOrg: ucc.ie +X-Forefront-PRVS: 0225B0D5BC +Received-SPF: Pass (: domain of ucc.ie designates 143.239.1.23 as permitted + sender) receiver=; client-ip=143.239.1.23; helo=mail3.ucc.ie; +Authentication-Results: spf=pass (sender IP is 143.239.1.23) + smtp.mailfrom=a.amann@ucc.ie; +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: Wed, 28 May 2014 13:15:43 -0000 + +Jani Nikula writes: +> My quick guess is that gmime stops header processing at that point, and +> all the headers we require are after that invalid header. + +I can confirm that. I adapted one of the example programs which comes +with gmime to read out the "From" header, and it indeed was not found, +because it came after the BOM. Therefore the root of the problem is +indeed with gmime not notmuch. I will send an email to the gmime-devel +list, to ask them if they consider this to be a bug. + +> If it were a real email and not spam, I'd be interested... this could be +> intentional to trick a spam filter. + +quite possible. Still a bit annoying ... + +Andreas + +