notmuch/lib
Tomi Valkeinen 075d53dde5 lib: fix error handling
Currently if a Xapian exception happens in notmuch_message_get_header,
the exception is not caught leading to crash. In
notmuch_message_get_date the exception is caught, but an internal error
is raised, again leading to crash.

This patch fixes the error handling by making both functions catch the
Xapian exceptions, print an error and return NULL or 0.

The 'notmuch->exception_reported' is also set, as is done elsewhere,
even if I don't really get the idea of that field.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
2014-01-18 14:47:35 -04:00
..
database-private.h lib: add date range query support 2012-10-31 16:55:32 -03:00
database.cc compact: improve error messages on failures after compaction 2013-11-19 20:15:02 -04:00
directory.cc lib: Perform the same transformation to _notmuch_database_find_directory_id 2012-05-23 22:30:32 -03:00
filenames.c lib: fix NULL checks for filenames iterators 2012-09-01 23:03:11 -03:00
gen-version-script.sh lib/gen-version-script.h: add getline and getdelim to notmuch.sym if needed 2011-09-05 07:44:14 -03:00
index.cc lib/cli: pass GMIME_ENABLE_RFC2047_WORKAROUNDS to g_mime_init() 2013-09-14 14:13:43 -03:00
libsha1.c util: detect byte order 2013-11-27 07:43:29 -04:00
libsha1.h fix sum moar typos [comments in source code] 2011-06-23 15:58:39 -07:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local lib: Bump library version from 3.0.0 to 3.1.0 2013-12-07 10:31:19 +08:00
message-file.c lib/cli: pass GMIME_ENABLE_RFC2047_WORKAROUNDS to g_mime_init() 2013-09-14 14:13:43 -03:00
message.cc lib: fix error handling 2014-01-18 14:47:35 -04:00
messages.c lib: Eliminate _notmuch_message_list_append 2013-02-18 20:20:38 -04:00
notmuch-private.h lib: fix clang build 2013-09-01 07:06:54 -03:00
notmuch.h lib: modify notmuch.h for automatic document generation 2014-01-05 09:05:00 -04:00
parse-time-vrp.cc lib: add date range query support 2012-10-31 16:55:32 -03:00
parse-time-vrp.h lib: add date range query support 2012-10-31 16:55:32 -03:00
query.cc query: bind queries to database objects 2013-11-02 07:20:01 -06:00
sha1.c Typsos 2009-11-18 03:21:36 -08:00
string-list.c Fixup string list author 2011-03-21 02:45:18 -04:00
tags.c lib: fix warnings when building with clang 2012-12-01 08:10:32 -04:00
thread.cc lib: fix clang compiler warning 2014-01-18 14:39:51 -04:00