Re: New Python bindings (notmuch2 module) fail to exclude tags

2020-11-25 Thread David Bremner
Floris Bruynooghe writes: > > I have a database with 3 messages organised in 2 threads and the > following tags: > > msg1: all > +- msg3: all, spam > msg2: all > > I query '*', so all messages with exclude_tags=['spam']. Querying this > with various flags gives me: > > NOTMUCH_EXCLUDE_TRUE: 2

Re: New Python bindings (notmuch2 module) fail to exclude tags

2020-11-24 Thread Floris Bruynooghe
Hi All, On Sat 21 Nov 2020 at 18:51 -0300, Jorge P. de Morais Neto wrote: > Hi Floris. > > Em [2020-11-20 sex 19:17:56+0100], Floris Bruynooghe escreveu: > >> Looking at the implementation I don't seem much that could have gone >> wrong. However I did notice the bindings fail to check the return

Re: New Python bindings (notmuch2 module) fail to exclude tags

2020-11-21 Thread Jorge P . de Morais Neto
Hi Floris. Em [2020-11-20 sex 19:17:56+0100], Floris Bruynooghe escreveu: > Looking at the implementation I don't seem much that could have gone > wrong. However I did notice the bindings fail to check the return code > in one call where it probably should, you could try with this patch? > > dif

New Python bindings (notmuch2 module) fail to exclude tags

2020-11-20 Thread Jorge P. de Morais Neto
Hi. I am trying to migrate my Python3 script to the new Python bindings (notmuch2 module). However, I cannot obtain a count of messages matching a query excluding messages that have an exclude tag. From the command line: $ notmuch count 'is:.bf_spam' 0 The CLI command correctly counts z

Re: New Python bindings (notmuch2 module) fail to exclude tags

2020-11-20 Thread Floris Bruynooghe
Hi Jorge, On Fri 20 Nov 2020 at 12:54 -0300, Jorge P. de Morais Neto wrote: > Hi. I am trying to migrate my Python3 script to the new Python bindings > (notmuch2 module). However, I cannot obtain a count of messages > matching a query excluding messages that have an exclude tag. From the > com

Re: New Python bindings (notmuch2 module) fail to exclude tags

2020-11-20 Thread David Bremner
"Jorge P. de Morais Neto" writes: > Hi. I am trying to migrate my Python3 script to the new Python bindings > (notmuch2 module). However, I cannot obtain a count of messages > matching a query excluding messages that have an exclude tag. From the > command line: > $ notmuch count 'is:.bf_s