<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/T610-message-property.sh, branch master</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=master</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2025-02-22T10:59:48Z</updated>
<entry>
<title>test/message-property: convert python tests from legacy bindings</title>
<updated>2025-02-22T10:59:48Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2025-02-15T19:22:53Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=58ea60c2e49fb7881046829141a7a795d1a3ffca'/>
<id>urn:sha1:58ea60c2e49fb7881046829141a7a795d1a3ffca</id>
<content type='text'>
One test is deleted since that method is not provided by the new
bindings. Similar things can be done by accessing the PropertiesMap
returned by properties.

This change is a prelude to removing the legacy bindings from the build.
</content>
</entry>
<entry>
<title>test: add test for notmuch_message_remove_all_properties_with_prefix</title>
<updated>2023-03-30T11:07:57Z</updated>
<author>
<name>Kevin Boulain</name>
<email>kevin@boula.in</email>
</author>
<published>2023-03-29T16:13:33Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a95959c491cc9ed7ca1493272b3fa91313f75041'/>
<id>urn:sha1:a95959c491cc9ed7ca1493272b3fa91313f75041</id>
<content type='text'>
It wasn't covered, though it shares most of its implementation with
notmuch_message_remove_all_properties.
</content>
</entry>
<entry>
<title>lib/message-property: sync removed properties to the database</title>
<updated>2023-03-30T11:01:09Z</updated>
<author>
<name>Kevin Boulain</name>
<email>kevin@boula.in</email>
</author>
<published>2023-03-29T16:13:32Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=fb55ff28a2fdaa9c218af5ca10b1cae674869edd'/>
<id>urn:sha1:fb55ff28a2fdaa9c218af5ca10b1cae674869edd</id>
<content type='text'>
_notmuch_message_remove_all_properties wasn't syncing the message back
to the database but was still invalidating the metadata, giving the
impression the properties had actually been removed.

Also move the metadata invalidation to _notmuch_message_remove_terms
to be closer to what's done in _notmuch_message_modify_property and
_notmuch_message_remove_term.
</content>
</entry>
<entry>
<title>test: reveal notmuch_message_remove_all_properties as broken</title>
<updated>2023-03-30T10:56:17Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2023-03-30T10:56:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=336334996750240608d5f29ed5dd8e40a69c4d79'/>
<id>urn:sha1:336334996750240608d5f29ed5dd8e40a69c4d79</id>
<content type='text'>
Close and re-open the database to show that the removal is not
committed to the database.
</content>
</entry>
<entry>
<title>test: reorganize tests and mark a few of them as broken</title>
<updated>2023-03-30T10:49:07Z</updated>
<author>
<name>Kevin Boulain</name>
<email>kevin@boula.in</email>
</author>
<published>2023-03-29T16:13:31Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e191d3c574e91199e524acbf6d7199bd58fd73d5'/>
<id>urn:sha1:e191d3c574e91199e524acbf6d7199bd58fd73d5</id>
<content type='text'>
notmuch_message_remove_all_properties should have removed the
  testkey1 = testvalue1
property but hasn't. Delay the execution of the corresponding test
to avoid updating a few tests that actually relied on the broken
behavior.
</content>
</entry>
<entry>
<title>test: remove unnecessary sorting</title>
<updated>2023-03-30T10:48:27Z</updated>
<author>
<name>Kevin Boulain</name>
<email>kevin@boula.in</email>
</author>
<published>2023-03-29T16:13:30Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=552d9ec9f766762ffdd1f565fc88b0a980f15b39'/>
<id>urn:sha1:552d9ec9f766762ffdd1f565fc88b0a980f15b39</id>
<content type='text'>
The other tests rely on a stable output.
</content>
</entry>
<entry>
<title>test: display key name in property tests</title>
<updated>2023-03-30T10:48:19Z</updated>
<author>
<name>Kevin Boulain</name>
<email>kevin@boula.in</email>
</author>
<published>2023-03-29T16:13:29Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ce59df52968d661bc5a173f75a37f27d290d955b'/>
<id>urn:sha1:ce59df52968d661bc5a173f75a37f27d290d955b</id>
<content type='text'>
To make the tests a bit easier to understand.
</content>
</entry>
<entry>
<title>lib/message-property: catch xapian exceptions</title>
<updated>2023-03-30T10:08:47Z</updated>
<author>
<name>Kevin Boulain</name>
<email>kevin@boula.in</email>
</author>
<published>2023-03-29T16:19:58Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=568f6bc3c2fd2396c05d254e2649750fb82b00b6'/>
<id>urn:sha1:568f6bc3c2fd2396c05d254e2649750fb82b00b6</id>
<content type='text'>
Since libnotmuch exposes a C interface there's no way for clients to
catch this.
Inspired by what's done for tags (see notmuch_message_remove_tag).
</content>
</entry>
<entry>
<title>test: uncaught exception when editing properties of a removed message</title>
<updated>2023-03-30T10:06:48Z</updated>
<author>
<name>Kevin Boulain</name>
<email>kevin@boula.in</email>
</author>
<published>2023-03-29T16:19:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c810312e24067a7176a26b35893cf64f754886c5'/>
<id>urn:sha1:c810312e24067a7176a26b35893cf64f754886c5</id>
<content type='text'>
These two functions don't fail gracefully when editing a removed
message:
 BROKEN edit property on removed message without uncaught exception
        --- T610-message-property.20.EXPECTED   2023-02-27 11:33:25.792764376 +0000
        +++ T610-message-property.20.OUTPUT     2023-02-27 11:33:25.793764381 +0000
        @@ -1,2 +1,3 @@
         == stdout ==
         == stderr ==
        +terminate called after throwing an instance of 'Xapian::DocNotFoundError'

The other functions appear to be safe.
</content>
</entry>
<entry>
<title>test: replace deprecated use of notmuch_database_open</title>
<updated>2022-05-29T10:36:44Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-05-21T18:06:30Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=32f299fe137a4ac731750d576e65337b395a42ef'/>
<id>urn:sha1:32f299fe137a4ac731750d576e65337b395a42ef</id>
<content type='text'>
This is a bit more involved than replacing the use of
notmuch_database_open_verbose, as we have to effectively inline the
definition of notmuch_database_open.
</content>
</entry>
</feed>
