notmuch/lib
David Bremner 1d5d0ae686 lib/message: move xapian call inside try/catch block in _n_m_delete
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
2022-12-27 11:59:46 -04:00
..
add-message.cc Merge branch 'release' 2021-05-22 09:34:55 -03:00
built-with.c rename built_with.sexpr_query to built_with.sexp_queries 2021-12-03 20:06:06 -04:00
config.cc lib/config: move g_key_File_get_string before continue 2022-01-22 21:14:29 -04:00
database-private.h lib: factor out lastmod range handling from sexp parser. 2022-09-03 08:36:53 -03:00
database.cc lib/database: propagate status code from _notmuch_message_delete 2022-12-27 11:59:29 -04:00
directory.cc lib: run uncrustify 2021-03-13 08:45:34 -04:00
features.cc lib: run uncrustify 2021-03-13 08:45:34 -04:00
filenames.c lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
index.cc lib: make glib initialization thread-safe 2021-05-13 22:21:57 -03:00
indexopts.c lib: make indexopts pointers opaque 2021-10-23 09:48:39 -03:00
init.cc lib: make glib initialization thread-safe 2021-05-13 22:21:57 -03:00
lastmod-fp.cc lib: add field processor for lastmod: prefix 2022-09-03 08:43:33 -03:00
lastmod-fp.h lib: add field processor for lastmod: prefix 2022-09-03 08:43:33 -03:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local lib: factor out lastmod range handling from sexp parser. 2022-09-03 08:36:53 -03:00
message-file.c lib: consider all instances of Delivered-To header 2021-08-29 18:10:08 -07:00
message-id.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
message-private.h lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
message-property.cc lib: run uncrustify 2021-03-13 08:45:34 -04:00
message.cc lib/message: move xapian call inside try/catch block in _n_m_delete 2022-12-27 11:59:46 -04:00
messages.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
notmuch-private.h lib: add NOTMUCH_STATUS_CLOSED_DATABASE, use in _n_d_ensure_writable 2022-06-25 16:06:18 -03:00
notmuch.h lib: add NOTMUCH_STATUS_CLOSED_DATABASE, use in _n_d_ensure_writable 2022-06-25 16:06:18 -03:00
notmuch.sym build: switch to hiding libnotmuch symbols by default 2017-05-12 07:17:18 -03:00
open.cc lib: add field processor for lastmod: prefix 2022-09-03 08:43:33 -03:00
parse-sexp.cc lib: factor out lastmod range handling from sexp parser. 2022-09-03 08:36:53 -03:00
parse-time-vrp.cc lib/date: factor out date range parsing. 2022-01-26 07:41:02 -04:00
parse-time-vrp.h lib: migrate from Xapian ValueRangeProcessor to RangeProcessor 2020-07-11 17:20:09 -03:00
prefix.cc lib: add sexp: prefix to Xapian (infix) query parser. 2022-04-15 08:25:46 -03:00
query-fp.cc lib: factor out expansion of saved queries. 2021-09-04 17:07:19 -07:00
query-fp.h build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
query.cc fix build without sfsexp 2022-04-15 14:17:31 -03:00
regexp-fields.cc lib: do not phrase parse prefixed bracketed subexpressions 2022-03-19 07:27:29 -03:00
regexp-fields.h lib: factor out query construction from regexp 2021-09-04 17:07:19 -07:00
sexp-fp.cc fix build without sfsexp 2022-04-15 14:17:31 -03:00
sexp-fp.h lib: add sexp: prefix to Xapian (infix) query parser. 2022-04-15 08:25:46 -03:00
sha1.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
string-list.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
string-map.c lib: run uncrustify 2021-03-13 08:45:34 -04:00
tags.c lib/tag: handle NULL argument to notmuch_tags_valid 2022-06-25 16:05:45 -03:00
thread-fp.cc lib/thread-fp: factor out query expansion, rewrite in Xapian 2021-09-04 17:07:19 -07:00
thread-fp.h build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
thread.cc lib/thread: add common prefix to debug messages, join lines 2021-05-23 08:01:38 -03:00