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: Sat, 21 Jan 2012 00:13:10 -0000

To: Kazuo Teramoto

Cc: Patrick Totzke, notmuch@notmuchmail.org

From: Justus Winter


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

Thread: