CamelIMAPXServer: Support the LIST-STATUS capability.
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 3 Sep 2013 20:09:12 +0000 (16:09 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Sun, 27 Oct 2013 12:24:42 +0000 (08:24 -0400)
http://tools.ietf.org/html/rfc5819

Now that untagged LIST and STATUS responses are processed independently
of any tagged commands in progress, utilizing LIST-STATUS is trivial.

camel/camel-imapx-server.c

index 3039c53..e673143 100644 (file)
@@ -831,6 +831,10 @@ imapx_server_stash_command_arguments (CamelIMAPXServer *is)
        g_free (is->priv->list_return_opts);
        if (CAMEL_IMAPX_HAVE_CAPABILITY (is->cinfo, LIST_EXTENDED)) {
                buffer = g_string_new ("CHILDREN SUBSCRIBED");
+               if (CAMEL_IMAPX_HAVE_CAPABILITY (is->cinfo, LIST_STATUS))
+                       g_string_append_printf (
+                               buffer, " STATUS (%s)",
+                               is->priv->status_data_items);
                is->priv->list_return_opts = g_string_free (buffer, FALSE);
        } else {
                is->priv->list_return_opts = NULL;