<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/lib/message.cc, branch 0.38.1_rc1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.38.1_rc1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.38.1_rc1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2023-07-22T10:11:46Z</updated>
<entry>
<title>lib/message: check message type before deleting document</title>
<updated>2023-07-22T10:11:46Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2023-07-20T12:08:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d93d49b6aed5b3f71651ffe79225da08c7d8f1aa'/>
<id>urn:sha1:d93d49b6aed5b3f71651ffe79225da08c7d8f1aa</id>
<content type='text'>
It isn't really clear how this worked before. Traversing the terms of
a document after deleting it from the database seems likely to be
undefined behaviour at best
</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>lib: add better diagnostics for over long filenames.</title>
<updated>2023-02-20T13:22:32Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-12-27T17:08:47Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=09f2ad8e853375930c63bca847f623bc722b9cc0'/>
<id>urn:sha1:09f2ad8e853375930c63bca847f623bc722b9cc0</id>
<content type='text'>
Previously we just crashed with an internal error. With this change,
the caller can handle it better. Update notmuch-new so that it doesn't
crash with "unknown error code" because of this change.
</content>
</entry>
<entry>
<title>lib/message: move xapian call inside try/catch block in _n_m_delete</title>
<updated>2022-12-27T15:59:46Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-12-04T02:28:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1d5d0ae68689e7b1d6b974e275f19371250c4b25'/>
<id>urn:sha1:1d5d0ae68689e7b1d6b974e275f19371250c4b25</id>
<content type='text'>
The call to delete_document can throw exceptions (and can happen in
practice [1]), so catch the exception and extract the error
message. As a side effect, also move the call to _n_m_has_term inside
the try/catch. This should not change anything as that function
already traps any Xapian exceptions.

[1]: id:wwuk039sk2p.fsf@chaotikum.eu
</content>
</entry>
<entry>
<title>lib: check for writable db in n_m_tags_maildir_flags</title>
<updated>2022-06-25T19:06:34Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-05-25T10:51:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6f749dd24a1c8138a05ac92884e8cb71098c7f6e'/>
<id>urn:sha1:6f749dd24a1c8138a05ac92884e8cb71098c7f6e</id>
<content type='text'>
The database needs to be writable because the list of stored file
names will change in general.
</content>
</entry>
<entry>
<title>lib/message: check return status from _n_m_add_{path,folder}_terms</title>
<updated>2022-06-25T15:55:02Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-05-23T23:39:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=879ec9d76ad5caeb728c3f047d1da425d0b511eb'/>
<id>urn:sha1:879ec9d76ad5caeb728c3f047d1da425d0b511eb</id>
<content type='text'>
Mainly to propagate information about Xapian exceptions.
</content>
</entry>
<entry>
<title>lib/message: check return status of _n_m_{add,remove}_term</title>
<updated>2022-06-25T15:55:02Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-05-23T23:38:59Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b102d0ad11a3b4c605f6561fcfa93805b0e7d712'/>
<id>urn:sha1:b102d0ad11a3b4c605f6561fcfa93805b0e7d712</id>
<content type='text'>
Xapian exceptions are not something that can be ignored, in general.
</content>
</entry>
<entry>
<title>lib/message: drop _notmuch_message_get_thread_id_only</title>
<updated>2022-06-25T15:55:02Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-05-23T23:38:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=bc80ff829ac205c68dfab45a21d4732cf5b8c2d0'/>
<id>urn:sha1:bc80ff829ac205c68dfab45a21d4732cf5b8c2d0</id>
<content type='text'>
This function has been unused since commit 4083fd8.
</content>
</entry>
<entry>
<title>lib/message: catch exceptions in _n_m_add_term</title>
<updated>2022-06-25T15:55:02Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-05-23T23:38:55Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f48d2e2ff89a7e0a413b29ca844b2c785063eb3d'/>
<id>urn:sha1:f48d2e2ff89a7e0a413b29ca844b2c785063eb3d</id>
<content type='text'>
Some code movement is needed to make sure the cache is only
invalidated when the Xapian operation succeeds.
</content>
</entry>
<entry>
<title>lib/message: use false from stdbool.h</title>
<updated>2022-05-26T11:30:00Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-05-26T11:30:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4f8a2d2253143d5dd3cee87d82bc48e1540d6a6d'/>
<id>urn:sha1:4f8a2d2253143d5dd3cee87d82bc48e1540d6a6d</id>
<content type='text'>
As far as I know, this is just a style / consistency thing, unless
notmuch code starts defining FALSE inconsistently with false.
</content>
</entry>
</feed>
