--- /dev/null
+Return-Path: <jani@nikula.org>\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 5B947431FC0\r
+ for <notmuch@notmuchmail.org>; Tue, 27 May 2014 23:25:28 -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 UrlhHGfnF7QP for <notmuch@notmuchmail.org>;\r
+ Tue, 27 May 2014 23:25:23 -0700 (PDT)\r
+Received: from mail-we0-f173.google.com (mail-we0-f173.google.com\r
+ [74.125.82.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 3D9D8431FB6\r
+ for <notmuch@notmuchmail.org>; Tue, 27 May 2014 23:25:23 -0700 (PDT)\r
+Received: by mail-we0-f173.google.com with SMTP id u57so10854035wes.32\r
+ for <notmuch@notmuchmail.org>; Tue, 27 May 2014 23:25:22 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:subject:in-reply-to:references\r
+ :user-agent:date:message-id:mime-version:content-type;\r
+ bh=guIzAZ9lA/3rL5aenWpBXaq6tI9DoaIJ/ocVVMKj3+M=;\r
+ b=kOQeyyy5UnYSq8gqKZ1KeCDfZFB9ebjdR96cVp/16yuIy7Vzcd3aR6+5qVbdE7eS+w\r
+ pFPBYCoedqt8wUkmsKNgdyyjYG0BQhByQ8Y4udR+aLdpBjDUKjQynRdGHWzgC9xqqQLf\r
+ QRh1hKV6Xz8PfXIG+h4lUS0TpGg1xSSPVJBP1DDSPf3uunPvxGw7ETAh3Q2TOdfrgGfj\r
+ vZClPFE8Lgml/E+Wua2PME6Yjjn6B/nuBikRAvtXby/5l8VzJO4ZmJ4Zi+/VzmR14I/K\r
+ Jp7yXpixHIZQaD/dEn/3IAcmyrxz26sdIkTttXHYJMArDrF+wtI4LvEvSDGQdfZQR+Nb\r
+ ePFA==\r
+X-Gm-Message-State:\r
+ ALoCoQlJAwJqDOM659hxb/IhQtFnwQA8PpG2kcIKnJ4m61hwLvLRcOYbD9SnDqRn6UZCF+9UxWpm\r
+X-Received: by 10.194.157.68 with SMTP id wk4mr48809924wjb.42.1401258321974;\r
+ Tue, 27 May 2014 23:25:21 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
+ [88.195.111.91]) by mx.google.com with ESMTPSA id\r
+ cv4sm40689709wjc.34.2014.05.27.23.25.20 for <multiple recipients>\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Tue, 27 May 2014 23:25:21 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: David Bremner <david@tethera.net>, Andreas Amann <a.amann@ucc.ie>,\r
+ notmuch@notmuchmail.org\r
+Subject: Re: notmuch new: emails with BOM are ignored\r
+In-Reply-To: <878upmn6d0.fsf@zancas.localnet>\r
+References: <874n0b4o16.fsf@msstf091.ucc.ie> <878upmn6d0.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.18~rc0+2~gbc64cdc (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Wed, 28 May 2014 09:25:18 +0300\r
+Message-ID: <87bnuiifn5.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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 06:25:28 -0000\r
+\r
+On Wed, 28 May 2014, David Bremner <david@tethera.net> wrote:\r
+> I've tagged this as a wishlist bug / feature request for now, until\r
+> somebody has a chance to track down where exactly the issue is, and how\r
+> hard it would be to fix.\r
+\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. Our old header\r
+parser was a bit more relaxed in that sense, and probably just skipped\r
+the header.\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
+\r
+BR,\r
+Jani.\r