|
|
e32795 |
diff -up evolution-data-server-3.28.5/src/camel/providers/imapx/camel-imapx-server.c.imapx-icloud-mail evolution-data-server-3.28.5/src/camel/providers/imapx/camel-imapx-server.c
|
|
|
e32795 |
--- evolution-data-server-3.28.5/src/camel/providers/imapx/camel-imapx-server.c.imapx-icloud-mail 2021-04-23 09:30:07.734875376 +0200
|
|
|
e32795 |
+++ evolution-data-server-3.28.5/src/camel/providers/imapx/camel-imapx-server.c 2021-04-23 09:31:45.321718451 +0200
|
|
|
e32795 |
@@ -629,6 +629,12 @@ imapx_server_stash_command_arguments (Ca
|
|
|
e32795 |
if (CAMEL_IMAPX_HAVE_CAPABILITY (is->priv->cinfo, SPECIAL_USE) || CAMEL_IMAPX_HAVE_CAPABILITY (is->priv->cinfo, X_GM_EXT_1))
|
|
|
e32795 |
g_string_append_printf (buffer, " SPECIAL-USE");
|
|
|
e32795 |
is->priv->list_return_opts = g_string_free (buffer, FALSE);
|
|
|
e32795 |
+ } else if (!is->priv->is_broken_cyrus && CAMEL_IMAPX_HAVE_CAPABILITY (is->priv->cinfo, LIST_STATUS)) {
|
|
|
e32795 |
+ buffer = g_string_new ("");
|
|
|
e32795 |
+ g_string_append_printf (
|
|
|
e32795 |
+ buffer, "STATUS (%s)",
|
|
|
e32795 |
+ is->priv->status_data_items);
|
|
|
e32795 |
+ is->priv->list_return_opts = g_string_free (buffer, FALSE);
|
|
|
e32795 |
} else {
|
|
|
e32795 |
is->priv->list_return_opts = NULL;
|
|
|
e32795 |
}
|
|
|
e32795 |
@@ -6208,7 +6214,7 @@ camel_imapx_server_list_sync (CamelIMAPX
|
|
|
e32795 |
|
|
|
e32795 |
camel_imapx_command_unref (ic);
|
|
|
e32795 |
|
|
|
e32795 |
- if (success && !is->priv->list_return_opts) {
|
|
|
e32795 |
+ if (success && (!is->priv->list_return_opts || CAMEL_IMAPX_LACK_CAPABILITY (is->priv->cinfo, LIST_EXTENDED))) {
|
|
|
e32795 |
ic = camel_imapx_command_new (is, CAMEL_IMAPX_JOB_LSUB, "LSUB \"\" %s",
|
|
|
e32795 |
pattern);
|
|
|
e32795 |
|
|
|
e32795 |
diff -up evolution-data-server-3.28.5/src/camel/providers/imapx/camel-imapx-utils.c.imapx-icloud-mail evolution-data-server-3.28.5/src/camel/providers/imapx/camel-imapx-utils.c
|
|
|
e32795 |
--- evolution-data-server-3.28.5/src/camel/providers/imapx/camel-imapx-utils.c.imapx-icloud-mail 2018-07-30 15:17:06.000000000 +0200
|
|
|
e32795 |
+++ evolution-data-server-3.28.5/src/camel/providers/imapx/camel-imapx-utils.c 2021-04-23 09:30:07.736875373 +0200
|
|
|
e32795 |
@@ -580,13 +580,6 @@ imapx_parse_capability (CamelIMAPXInputS
|
|
|
e32795 |
stream, &token, &len, cancellable, &local_error);
|
|
|
e32795 |
}
|
|
|
e32795 |
|
|
|
e32795 |
- /* Some capabilities are extensions of other capabilities.
|
|
|
e32795 |
- * Make sure all prerequisite capability flags are present. */
|
|
|
e32795 |
-
|
|
|
e32795 |
- /* LIST-STATUS is an extension of LIST-EXTENDED. */
|
|
|
e32795 |
- if (CAMEL_IMAPX_HAVE_CAPABILITY (cinfo, LIST_STATUS))
|
|
|
e32795 |
- cinfo->capa |= imapx_lookup_capability ("LIST-EXTENDED");
|
|
|
e32795 |
-
|
|
|
e32795 |
if (local_error != NULL) {
|
|
|
e32795 |
g_propagate_error (error, local_error);
|
|
|
e32795 |
imapx_free_capability (cinfo);
|