[evolution-data-server/gnome-2-30] Fix imapx_parse_flags to not just return the first UID repeatedly, export it. (cherry picked from co
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-2-30] Fix imapx_parse_flags to not just return the first UID repeatedly, export it. (cherry picked from co
- Date: Mon, 28 Jun 2010 19:34:52 +0000 (UTC)
commit 0895dac4c2c9bd800abb28984fe2ee50428773fa
Author: David Woodhouse <David Woodhouse intel com>
Date: Sat Jun 19 12:37:48 2010 +0100
Fix imapx_parse_flags to not just return the first UID repeatedly, export it.
(cherry picked from commit 768157a2b16bddac76aacb0a2d49ac59c9df10cf)
camel/providers/imapx/camel-imapx-utils.c | 5 ++---
camel/providers/imapx/camel-imapx-utils.h | 1 +
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-utils.c b/camel/providers/imapx/camel-imapx-utils.c
index 1fc96f3..f5237df 100644
--- a/camel/providers/imapx/camel-imapx-utils.c
+++ b/camel/providers/imapx/camel-imapx-utils.c
@@ -39,7 +39,6 @@ imapx_tokenise (register const gchar *str, register guint len)
static void imapx_namespace_clear (CamelIMAPXStoreNamespace **ns);
static const gchar * rename_label_flag (const gchar *flag, gint len, gboolean server_to_evo);
-static GPtrArray *imapx_parse_uids (CamelIMAPXStream *is, CamelException *ex);
/* flag table */
static struct {
@@ -1529,7 +1528,7 @@ generate_uids_from_sequence (GPtrArray *uids, guint32 begin_uid, guint32 end_uid
g_ptr_array_add (uids, GUINT_TO_POINTER (i));
}
-static GPtrArray *
+GPtrArray *
imapx_parse_uids (CamelIMAPXStream *is, CamelException *ex)
{
GPtrArray *uids = g_ptr_array_new ();
@@ -1551,7 +1550,7 @@ imapx_parse_uids (CamelIMAPXStream *is, CamelException *ex)
generate_uids_from_sequence (uids, uid1, uid2);
g_strfreev (seq);
} else {
- guint32 uid = strtoul ((gchar *) token, NULL, 10);
+ guint32 uid = strtoul ((gchar *) splits[i], NULL, 10);
g_ptr_array_add (uids, GUINT_TO_POINTER (uid));
}
}
diff --git a/camel/providers/imapx/camel-imapx-utils.h b/camel/providers/imapx/camel-imapx-utils.h
index 9f2c4c3..6215afa 100644
--- a/camel/providers/imapx/camel-imapx-utils.h
+++ b/camel/providers/imapx/camel-imapx-utils.h
@@ -61,6 +61,7 @@ enum {
/* ********************************************************************** */
+GPtrArray *imapx_parse_uids (struct _CamelIMAPXStream *is, CamelException *ex);
void imapx_parse_flags(struct _CamelIMAPXStream *stream, guint32 *flagsp, struct _CamelFlag **user_flagsp, CamelException *ex);
void imapx_write_flags(CamelStream *stream, guint32 flags, struct _CamelFlag *user_flags, CamelException *ex);
gboolean imapx_update_message_info_flags (CamelMessageInfo *info, guint32 server_flags, CamelFlag *server_user_flags, CamelFolder *folder);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]