[evolution-data-server/gnome-3-20] Bug 740627 - [IMAPx] Cannot append to a write-only folder



commit d6a13047fd2a9e595f4baed518b32d7cbfe4f783
Author: Milan Crha <mcrha redhat com>
Date:   Wed May 11 16:52:26 2016 +0200

    Bug 740627 - [IMAPx] Cannot append to a write-only folder

 camel/providers/imapx/camel-imapx-server.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 0aa108a..ed3ea43 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -3689,6 +3689,9 @@ camel_imapx_server_ensure_selected_sync (CamelIMAPXServer *is,
        if (success) {
                is->priv->state = IMAPX_SELECTED;
                g_weak_ref_set (&is->priv->select_mailbox, mailbox);
+       } else {
+               is->priv->state = IMAPX_INITIALISED;
+               g_weak_ref_set (&is->priv->select_mailbox, NULL);
        }
 
        g_mutex_unlock (&is->priv->select_lock);


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