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 53934431FD0 for ; Wed, 27 Apr 2011 09:19:33 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.463 X-Spam-Level: * X-Spam-Status: No, score=1.463 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, RDNS_DYNAMIC=0.363, TO_NO_BRKTS_DYNIP=1] autolearn=unavailable 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 oBMI8oMfE+J2 for ; Wed, 27 Apr 2011 09:19:33 -0700 (PDT) Received: from xhlj.maillard.im (cha51-3-88-164-105-66.fbx.proxad.net [88.164.105.66]) by olra.theworths.org (Postfix) with ESMTP id 0E2C2431FB5 for ; Wed, 27 Apr 2011 09:19:33 -0700 (PDT) Received: from xhlj.maillard.im (xhlj.maillard.im [127.0.0.1]) by xhlj.maillard.im (Postfix) with ESMTP id B11932C062; Wed, 27 Apr 2011 18:19:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=maillard.im; h=from:to :subject:in-reply-to:references:reply-to:date:message-id :mime-version:content-type; s=postfix; bh=qY/a54ItWgQoitwWDxDin3 Q8OD8=; b=Qup6SfoXoEFFJFOabVbSbs3GdheojENArz0z7QP73mUA4zsN3U8xqG RZ0l2uUH4xSDg2AFb+006+V0+wsg1l7M64vLTc6GTLMzaCGzlt7ag1lzxAzSfNzB sODnxQPlC0YkntOL7MK6TAWFcG9v+W9fr2kkLIJmVmdelABuqQzVM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=maillard.im; h=from:to :subject:in-reply-to:references:reply-to:date:message-id :mime-version:content-type; q=dns; s=postfix; b=Wxp9ggefZagjBizs fO8vVtldApVHEOf+D9OyXZrP6WWUa2F3FpjYX5FQwauQMniXlhgkOkBJ+n7VMXe5 VHtwpoAaAycNX/zCqZuFYrBCjREjI2yqQKhKFUEWFEQsbLPtYz7JPisq4r9Kz5EB mZBmwzhtQjOtnPB5RWzeB0sjoMk= Received: from maillard.im (unknown [192.168.0.254]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by xhlj.maillard.im (Postfix) with ESMTPSA; Wed, 27 Apr 2011 18:19:23 +0200 (CEST) From: Xavier Maillard To: Carl Worth , Matthieu Lemerre , notmuch@notmuchmail.org Subject: Re: Warning when GMime is parsing broken email addresses In-Reply-To: <877hai3r82.fsf@yoom.home.cworth.org> References: <87ipzvk2xh.fsf@free.fr> <877hai3r82.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.5-133-gc509598 (http://notmuchmail.org) Emacs/23.2.1 (i486-slackware-linux-gnu) Date: Wed, 27 Apr 2011 18:30:09 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Xavier Maillard 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, 27 Apr 2011 16:19:33 -0000 On Mon, 25 Apr 2011 15:23:41 -0700, Carl Worth wrote: > On Wed, 17 Nov 2010 23:20:26 +0100, Matthieu Lemerre wrote: > > Maybe it would also be interesting to add a warning/assertion to check > > that all email adresses added to the database are correct email > > addresses? I.e. check that the `addr' variable in _index_address_mailbox > > always has a @. This check is in fact already done using the function > > strchr, but a bad value is explicitly ignored... > > Hmm... we could add a warning like that. But I don't know how useful it > would actually be. (I, for one, am currently not seeing any warnings > From "notmuch new"---maybe I should fix that...). > > Since GMime is fixed upstream (as of version 2.4.18) another option > would be to simply make the notmuch build system require a sufficiently > new version of GMime in order to build. > > What do you think? My vote goes to the latter. Cleaner and really simple solution. /Xavier