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 BCFB2429E25 for ; Tue, 22 Nov 2011 15:30:38 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] 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 rWQcT4OTXyAq for ; Tue, 22 Nov 2011 15:30:38 -0800 (PST) Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0FE84431FB6 for ; Tue, 22 Nov 2011 15:30:37 -0800 (PST) Received: from zancas.localnet (fctnnbsc36w-156034074106.pppoe-dynamic.High-Speed.nb.bellaliant.net [156.34.74.106]) (authenticated bits=0) by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pAMNUYf8020432 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Tue, 22 Nov 2011 19:30:35 -0400 Received: from bremner by zancas.localnet with local (Exim 4.77) (envelope-from ) id 1RSznO-0001zo-Ik; Tue, 22 Nov 2011 19:30:34 -0400 From: David Bremner To: Petter Reinholdtsen , notmuch@notmuchmail.org Subject: Re: Incorrect parsing of email addresses (MIME with quotes) In-Reply-To: <2fl1ut17iqm.fsf@diskless.uio.no> References: <2flr522zju3.fsf@login2.uio.no> <4EA58DC6.6090108@fifthhorseman.net> <2fl1ut17iqm.fsf@diskless.uio.no> User-Agent: Notmuch/0.10~rc2 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 22 Nov 2011 19:30:34 -0400 Message-ID: <87y5v7spk5.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Tue, 22 Nov 2011 23:30:38 -0000 On Mon, 21 Nov 2011 13:38:57 +0100, Petter Reinholdtsen wrote: > I just hope the notmuch developers can choose to follow the robustness > principle[1] in this case, and be liberal in what notmuch accept, and > conservative in what notmuch send. After all, gnus, mutt and pine > handle these from fields. It's a nice stick to beat people with, but I'm not sure it's directly applicable here. Notmuch is accepting the input, it just isn't displaying it the way you want. I guess if somebody has some patches for "sloppy header parsing", we can weigh the pros and cons then. If someone wants to follow up on this, we are currently using http://spruce.sourceforge.net/gmime/doc/gmime-gmime-utils.html#g-mime-utils-header-decode-text There is some discussion there about dealing with bad inputs; I don't know if it is directly relevant. d