notmuch/lib
martin f. krafft 449a418c65 Do not segfault on empty mime parts
notmuch previously unconditionally checked mime parts for various
properties, but not for NULL, which is the case if libgmime encounters
an empty mime part.

Upon encounter of an empty mime part, the following is printed to
stderr (the second line due to my patch):

  (process:17197): gmime-CRITICAL **: g_mime_message_get_mime_part: assertion `GMIME_IS_MESSAGE (message)' failed
  Warning: Not indexing empty mime part.

This is probably a bug that should get addressed in libgmime, but for
not, my patch is an acceptable workaround.

Signed-off-by: martin f. krafft <madduck@madduck.net>
2010-04-13 08:49:06 -07:00
..
database-private.h Fix printf for when uint64_t != unsigned long long int 2010-02-09 11:14:16 -08:00
database.cc lib: Remove condition regarding a NULL parent_thread_id. 2010-04-12 15:54:03 -07:00
directory.cc lib: Rename iterator functions to prepare for reverse iteration. 2010-03-09 09:22:29 -08:00
index.cc Do not segfault on empty mime parts 2010-04-13 08:49:06 -07:00
libsha1.c libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
libsha1.h libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
Makefile Makefiles: Use .DEFAULT to support arbitrary targets from sub directories. 2010-01-06 10:32:06 -08:00
Makefile.local Avoid needlessly linking final notmuch binary against libXapian. 2010-04-06 18:30:43 -07:00
message-file.c fix notmuch_message_file_get_header 2010-04-06 18:47:28 -07:00
message.cc lib: Silence a compiler warning. 2010-03-09 12:07:26 -08:00
messages.c lib: Rename iterator functions to prepare for reverse iteration. 2010-03-09 09:22:29 -08:00
notmuch-private.h lib: Rename iterator functions to prepare for reverse iteration. 2010-03-09 09:22:29 -08:00
notmuch.h Fix typo in notmuch.h documentation regarding database open modes 2010-04-13 08:39:10 -07:00
query.cc lib: Handle "*" as a query string to match all messages. 2010-04-09 17:43:58 -07:00
sha1.c Typsos 2009-11-18 03:21:36 -08:00
tags.c lib: Rename iterator functions to prepare for reverse iteration. 2010-03-09 09:22:29 -08:00
thread.cc fix obvious cut and paste error 2010-04-06 18:55:56 -07:00
xutil.c xutil: Implement xstrndup without relying on strndup. 2009-12-01 12:51:39 -08:00
xutil.h libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00