[evolution-kolab] KolabMailImapClient: actually delete the folder when requested so
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab] KolabMailImapClient: actually delete the folder when requested so
- Date: Thu, 20 Sep 2012 12:27:01 +0000 (UTC)
commit 9d1d0e1a4dd6786befa6a21cdaf007b3bf5edff6
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Thu Sep 20 14:18:44 2012 +0200
KolabMailImapClient: actually delete the folder when requested so
src/libekolab/kolab-mail-imap-client.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/libekolab/kolab-mail-imap-client.c b/src/libekolab/kolab-mail-imap-client.c
index a20ed11..a145d18 100644
--- a/src/libekolab/kolab-mail-imap-client.c
+++ b/src/libekolab/kolab-mail-imap-client.c
@@ -1707,6 +1707,8 @@ kolab_mail_imap_client_delete_folder (KolabMailImapClient *self,
GError **err)
{
KolabMailImapClientPrivate *priv = NULL;
+ GError *tmp_err = NULL;
+ gboolean ok = FALSE;
g_assert (KOLAB_IS_MAIL_IMAP_CLIENT (self));
g_assert (foldername != NULL);
@@ -1717,10 +1719,15 @@ kolab_mail_imap_client_delete_folder (KolabMailImapClient *self,
g_assert (priv->is_up == TRUE);
- /* FIXME */
- g_warning ("%s()[%u] FIXME implement me", __func__, __LINE__);
+ /* delete folder on server */
+ ok = camel_store_delete_folder_sync (CAMEL_STORE (priv->store),
+ foldername,
+ cancellable,
+ &tmp_err);
+ if (! ok)
+ g_propagate_error (err, tmp_err);
- return TRUE;
+ return ok;
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]