]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database.cc
lib/cli: pass GMIME_ENABLE_RFC2047_WORKAROUNDS to g_mime_init()
[notmuch] / lib / database.cc
index 52ed618b81a6e3815b45d89c9e486d871d508e91..bb4f1801c133c1bff78dc761271ca31fc75954be 100644 (file)
@@ -649,11 +649,13 @@ notmuch_database_open (const char *path,
     }
 
     /* Initialize the GLib type system and threads */
+#if !GLIB_CHECK_VERSION(2, 35, 1)
     g_type_init ();
+#endif
 
     /* Initialize gmime */
     if (! initialized) {
-       g_mime_init (0);
+       g_mime_init (GMIME_ENABLE_RFC2047_WORKAROUNDS);
        initialized = 1;
     }