[balsa] mailbox-local: Do not pass message



commit aca0cba766b69404dee7422cf66c596843550c77
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Mar 3 14:33:18 2020 -0500

    mailbox-local: Do not pass message
    
    Do not pass message to LibBalsaMailbox for caching, in a case not covered
    by commit d95c3a90b2478e9dcd18d50ba0bf4efd3a10f64b
    
    * libbalsa/mailbox_local.c (lbm_local_cache_message):

 ChangeLog                | 8 ++++++++
 libbalsa/mailbox_local.c | 6 +++---
 2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2d9ae5db4..22dadd0f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-03-03  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       mailbox-local: Do not pass message to LibBalsaMailbox
+
+       in a case not covered by commit d95c3a90b2478e9dcd18d50ba0bf4efd3a10f64b
+
+       * libbalsa/mailbox_local.c (lbm_local_cache_message):
+
 2020-03-03  Albrecht Dreß  <albrecht dress arcor de>
 
        Move recheck crypto button to menu, toolbar
diff --git a/libbalsa/mailbox_local.c b/libbalsa/mailbox_local.c
index ddd54fe1c..508790f8c 100644
--- a/libbalsa/mailbox_local.c
+++ b/libbalsa/mailbox_local.c
@@ -1012,9 +1012,6 @@ lbm_local_cache_message(LibBalsaMailboxLocal * local,
     if (priv->threading_info == NULL)
         return;
 
-    libbalsa_mailbox_cache_message(LIBBALSA_MAILBOX(local), msgno,
-                                   message);
-
     if (priv->threading_info->len < msgno)
         g_ptr_array_set_size(priv->threading_info, msgno);
 
@@ -1040,6 +1037,9 @@ lbm_local_cache_message(LibBalsaMailboxLocal * local,
         priv->set_threading_id =
             g_idle_add((GSourceFunc) lbml_set_threading_idle_cb, local);
     }
+
+    libbalsa_mailbox_cache_message(LIBBALSA_MAILBOX(local), msgno,
+                                   message);
 }
 
 void


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