Re: Bug: counting messages twice after excluding tags yields different results

2016-08-31 Thread David Bremner
Franz Fellner writes: > On Wed, 31 Aug 2016 09:20:52 -0300, David Bremner wrote: >> Lucas Hoffmann writes: >> >> > Thank you Franz, sadly your reply did not convince me: >> > >> > Quoting Franz Fellner (2016-08-31 11:21:18) >> >> Your problem: the example sucks ;) >> > >> > No, I must object :

Re: Bug: counting messages twice after excluding tags yields different results

2016-08-31 Thread Franz Fellner
On Wed, 31 Aug 2016 09:20:52 -0300, David Bremner wrote: > Lucas Hoffmann writes: > > > Thank you Franz, sadly your reply did not convince me: > > > > Quoting Franz Fellner (2016-08-31 11:21:18) > >> Your problem: the example sucks ;) > > > > No, I must object :( > > > >> If the query searches f

Re: Bug: counting messages twice after excluding tags yields different results

2016-08-31 Thread David Bremner
Lucas Hoffmann writes: > Thank you Franz, sadly your reply did not convince me: > > Quoting Franz Fellner (2016-08-31 11:21:18) >> Your problem: the example sucks ;) > > No, I must object :( > >> If the query searches for a tag you also have in exclude_tags (in your >> case: spam) the exclude get

Re: Bug: counting messages twice after excluding tags yields different results

2016-08-31 Thread Lucas Hoffmann
Thank you Franz, sadly your reply did not convince me: Quoting Franz Fellner (2016-08-31 11:21:18) > Your problem: the example sucks ;) No, I must object :( > If the query searches for a tag you also have in exclude_tags (in your > case: spam) the exclude gets ignored. Is that documented? Beca

Re: Bug: counting messages twice after excluding tags yields different results

2016-08-31 Thread Franz Fellner
Your problem: the example sucks ;) If the query searches for a tag you also have in exclude_tags (in your case: spam) the exclude gets ignored. Change your query to just "is:inbox" and magically "spam" really gets excluded. However it is better to create fresh query objects for each new query. I

Bug: counting messages twice after excluding tags yields different results

2016-08-31 Thread Lucas
Dear list members, I think I found a bug or at least undocumented behaviour in the notmuch library. I would like to report this here. Originally I found the bug in the python library but I attached a c program that shows the same behaviour. I am running notmuch version 0.22.1 from the Arch Linu