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 CB2D6431FAF for ; Fri, 20 Jan 2012 13:55:14 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 2X6aLQiSUuST for ; Fri, 20 Jan 2012 13:55:14 -0800 (PST) Received: from mail-yw0-f53.google.com (mail-yw0-f53.google.com [209.85.213.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 7054A431FAE for ; Fri, 20 Jan 2012 13:55:14 -0800 (PST) Received: by yhjj56 with SMTP id j56so679631yhj.26 for ; Fri, 20 Jan 2012 13:55:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=SzplGmQ1kpuKpTdh/55aKtEMrgPKXNF8FHiE5LsgtEg=; b=La+8yGiLDr9xthKJLGe8NMZoNAPajtErWxkQjtUkMWojnDaMvgVgUYp7TKzDe+onpy nrWPp/UnM/KGQvvNgKaU9I+8DDEJX+c7UzlAzf6D+UNuQqdSOlrnEXj3x35iAjSJkPfK u5mduFxeAnH2fihLnkjIInoADBZG/OPH5BclA= Received: by 10.236.183.137 with SMTP id q9mr13360054yhm.21.1327096511925; Fri, 20 Jan 2012 13:55:11 -0800 (PST) Received: from sophie.kazuoteramoto.org ([200.162.199.95]) by mx.google.com with ESMTPS id g28sm7451610yhm.10.2012.01.20.13.55.09 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 Jan 2012 13:55:11 -0800 (PST) Date: Fri, 20 Jan 2012 19:55:08 -0200 From: Kazuo Teramoto To: Justus Winter <4winter@informatik.uni-hamburg.de> Subject: Re: [afew] announcing afew, an universal tagging solution with some fancy features Message-ID: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: <20120120112605.5324.87866@thinkbox.jade-hamburg.de> User-Agent: Mutt/1.5.21 (2011-07-01) 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: Fri, 20 Jan 2012 21:55:14 -0000 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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.. >=20 > Hm, actually it does exactly that: >=20 > 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. What about putting a strip(';') before the split()? --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAABAgAGBQJPGeKvAAoJEC5TAG44rnJiMj8QAJFXC+wjRzZbYMQGA1oFIgrd 3IoHeOgBXr1b567SXfSVzKX3KA9xugju0QQQEuCWuvYPYNiYwsiQgm1oKloN9b9r 1/C2i5jYSgHI96BRyz04oa751BOs7NhTgBSztxR0rtn6GGriw+gGhl821EQSYHY9 ajTfTwX+UbFEnhIy7PeOCtHpmW8o3XfJPcWpN5pg4+wg1w00so0j8skRYPktCg4T /9XuleB3LoFq5++yKMZBDQX2rWAHOWW572X8RNhT3419EUGyQxvxQ7BzMYswbZI2 NY1ihXIGX/+/y+ToFklJQ221whPjv1kYa4gOgqnQv/Mxo5/LKze5p4UoX6Y3xu6c 5Vk8o6BqR0IPaa8Bi3SEhJ4IWx87iYTOuwIRKsg4/R+inMm8tXU5CpmwkOr9hJju narbr4lXJOL+UB2ZUoqJoPN3lywwvdQppaqHHgX20TtRVpDt2oc3AykZkKr0QwuH gqTXpMD7dbhkwsUvFzrew07A69KqpOnwUYzE57ujYrizkmk74bPQVbpwBYSRzBhj 7ibyi5nqaOfdBXyAIA6QIWt8DO0t7dlzmpI0ax3NWfM7qIdoHeDN3JoTWQFzKQ+5 l3s0E30TVkC6Grfo3pB4O5QNO7woIExNuyKylyN4yCmY+9kcThfNvhJTVJHGRFea kx6QBMHO+zMdQJX9GoPD =9jKe -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu--