From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3FE23431FAF for ; Fri, 20 Jan 2012 16:14:21 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "Date" X-Spam-Flag: NO X-Spam-Score: 0.432 X-Spam-Level: X-Spam-Status: No, score=0.432 tagged_above=-999 required=5 tests=[INVALID_DATE=0.432] 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 XuKBS1myv146 for ; Fri, 20 Jan 2012 16:14:20 -0800 (PST) Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A5977431FAE for ; Fri, 20 Jan 2012 16:14:20 -0800 (PST) Received: from mail.jade-hamburg.de (unknown [85.183.11.228]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cryptobitch.de (Postfix) with ESMTPSA id 1A49052C90A for ; Sat, 21 Jan 2012 01:14:19 +0100 (CET) Received: by mail.jade-hamburg.de (Postfix, from userid 401) id 8D52EDF2A2; Sat, 21 Jan 2012 01:14:18 +0100 (CET) Received: from thinkbox.jade-hamburg.de (unknown [10.1.1.109]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: teythoon) by mail.jade-hamburg.de (Postfix) with ESMTPSA id CB6D5DF2A0; Sat, 21 Jan 2012 01:14:15 +0100 (CET) Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77) (envelope-from ) id 1RoOZz-0007NL-IC; Sat, 21 Jan 2012 01:13:11 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Kazuo Teramoto , From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Sat, 21 Jan 2012 00:13:10 -0000 In-Reply-To: <20120120215508.GA1967@kazuoteramoto.org> References: <4ee8d62a.596ee30a.1833.ffffc33e@mx.google.com> <87k45so36b.fsf@servo.finestructure.net> <4eef7faa.c1cae30a.0802.ffffaffb@mx.google.com> <20120120104041.23590.16718@megatron> <20120120112605.5324.87866@thinkbox.jade-hamburg.de> <20120120215508.GA1967@kazuoteramoto.org> Message-ID: <20120121001310.15419.62955@thinkbox.jade-hamburg.de> Subject: Re: [afew] announcing afew, an universal tagging solution with some fancy features Date: Sat, 21 Jan 2012 01:13:10 +0100 Cc: Patrick Totzke , notmuch@notmuchmail.org 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: Sat, 21 Jan 2012 00:14:21 -0000 Quoting Kazuo Teramoto (2012-01-20 22:55:08) >On Fri, Jan 20, 2012 at 12:26:05PM +0100, Justus Winter wrote: >> Quoting Patrick Totzke (2012-01-20 11:40:41) >> >I suspect you don't split the config value and thus afew ended up >> >with a false tag "new;". its just cosmetics but nevertheless.. >> = >> Hm, actually it does exactly that: >> = >> def get_notmuch_new_tags(): >> return notmuch_settings.get('new', 'tags').split(';') > >The problem, I think, is caused by how python split the string >~~~~~~~~~~ >>>> 'new;'.split(';') >['new', ''] >~~~~~~~~~~ > >So afew pass a query with 'tag:""' and it don't match any message. You are totally right, fix pushed. Thanks, Justus