[evolution-data-server] [IMAPx] Declare summary to use when cloning message info after message append



commit 38607cd6a9dd3eb92062bd9d71bc9da5454e5d85
Author: Milan Crha <mcrha redhat com>
Date:   Thu Feb 16 12:27:58 2017 +0100

    [IMAPx] Declare summary to use when cloning message info after message append
    
    That's to actually use the correct CamelMessageInfo descendant, because
    otherwise the code which expects the IMAPx descendant fails with runtime
    warnings.

 src/camel/providers/imapx/camel-imapx-server.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/providers/imapx/camel-imapx-server.c b/src/camel/providers/imapx/camel-imapx-server.c
index a5b1e68..b43fcfa 100644
--- a/src/camel/providers/imapx/camel-imapx-server.c
+++ b/src/camel/providers/imapx/camel-imapx-server.c
@@ -4680,7 +4680,7 @@ camel_imapx_server_append_message_sync (CamelIMAPXServer *is,
                 * numbered MessageInfo, without losing any information.  Otherwise
                 * we have to wait for the server to let us know it was appended. */
 
-               mi = camel_message_info_clone (info, NULL);
+               mi = camel_message_info_clone (info, camel_folder_get_folder_summary (folder));
                old_uid = g_strdup (camel_message_info_get_uid (info));
 
                if (ic->status && ic->status->condition == IMAPX_APPENDUID) {


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