Re: [afew] announcing afew, an universal tagging solution with some fancy features

Subject: Re: [afew] announcing afew, an universal tagging solution with some fancy features

Date: Fri, 20 Jan 2012 19:55:08 -0200

To: Justus Winter

Cc: Patrick Totzke, notmuch@notmuchmail.org

From: Kazuo Teramoto


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. What
about putting a strip(';') before the split()?
part-000.sig (application/pgp-signature)

Thread: