From 71521f06b00a01c5b0eaea5f5f624fe57ed7f426 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Wed, 11 Sep 2013 20:36:43 +0300 Subject: lib/cli: pass GMIME_ENABLE_RFC2047_WORKAROUNDS to g_mime_init() As explained by Jeffrey Stedfast, the author of GMime, quoted in [1]: > Passing the GMIME_ENABLE_RFC2047_WORKAROUNDS flag to g_mime_init() > *should* solve the decoding problem mentioned in the thread. This > flag should be safe to pass into g_mime_init() without any bad side > effects and my unit tests do test that code-path. The thread being referred to is [2]. [1] id:87bo56viyo.fsf@nikula.org [2] id:08cb1dcd-c5db-4e33-8b09-7730cb3d59a2@gmail.com --- lib/database.cc | 2 +- lib/index.cc | 2 +- lib/message-file.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/database.cc b/lib/database.cc index 5cc07658..bb4f1801 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -655,7 +655,7 @@ notmuch_database_open (const char *path, /* Initialize gmime */ if (! initialized) { - g_mime_init (0); + g_mime_init (GMIME_ENABLE_RFC2047_WORKAROUNDS); initialized = 1; } diff --git a/lib/index.cc b/lib/index.cc index a2edd6d9..78c18cf3 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -440,7 +440,7 @@ _notmuch_message_index_file (notmuch_message_t *message, static bool mbox_warning = false; if (! initialized) { - g_mime_init (0); + g_mime_init (GMIME_ENABLE_RFC2047_WORKAROUNDS); initialized = 1; } diff --git a/lib/message-file.c b/lib/message-file.c index 4d9af89f..a2850c27 100644 --- a/lib/message-file.c +++ b/lib/message-file.c @@ -228,7 +228,7 @@ notmuch_message_file_get_header (notmuch_message_file_t *message, is_received = (strcmp(header_desired,"received") == 0); if (! initialized) { - g_mime_init (0); + g_mime_init (GMIME_ENABLE_RFC2047_WORKAROUNDS); initialized = 1; } -- cgit v1.2.3