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

Kazuo Teramoto kaz.rag at gmail.com
Fri Jan 20 13:55:08 PST 2012


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()?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120120/27a65c9e/attachment.pgp>


More information about the notmuch mailing list