[balsa] Fix broken decryption of s/mime IMAP messages



commit 40c59c357e91a5d3ce594e5ac81c74491a559afa
Author: Albrecht Dreß <albrecht dress arcor de>
Date:   Fri Feb 15 17:31:10 2019 -0500

    Fix broken decryption of s/mime IMAP messages
    
    Fix broken decryption of s/mime messages loaded from imap
    
    * libbalsa/mailbox_imap.c
    (libbalsa_mailbox_imap_fetch_structure): fetch part if it is not
    multipart/*, instead of only fetching text/*.
    
    Signed-off-by: Peter Bloomfield <PeterBloomfield bellsouth net>

 ChangeLog               | 8 ++++++++
 libbalsa/mailbox_imap.c | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/ChangeLog b/ChangeLog
index 70a21926e..4c4b74949 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-02-15  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       Fix broken decryption of s/mime messages loaded from imap
+
+       * libbalsa/mailbox_imap.c
+       (libbalsa_mailbox_imap_fetch_structure): fetch part if it is not
+       multipart/*, instead of only fetching text/*.
+
 2018-02-15  Albrecht Dreß  <albrecht dress arcor de>
 
        Printing of HTML message parts
diff --git a/libbalsa/mailbox_imap.c b/libbalsa/mailbox_imap.c
index d85e377c1..8992755b5 100644
--- a/libbalsa/mailbox_imap.c
+++ b/libbalsa/mailbox_imap.c
@@ -2247,7 +2247,8 @@ libbalsa_mailbox_imap_fetch_structure(LibBalsaMailbox *mailbox,
        LIBBALSA_MESSAGE_GET_LENGTH(message)<8192 ||
        (message->headers &&
         (!message->headers->content_type ||
-         g_mime_content_type_is_type(message->headers->content_type, "text", "*"))) ){
+         !g_mime_content_type_is_type(message->headers->content_type,
+                                      "multipart", "*"))) ){
         /* we could optimize this part a little bit: we do not need to
          * keep reopening the stream. */
         GMimeStream *stream = 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]