diff options
| author | David Woodhouse <David.Woodhouse@intel.com> | 2010-06-19 12:37:48 +0100 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-06-28 13:29:19 +0100 |
| commit | 0895dac4c2c9bd800abb28984fe2ee50428773fa (patch) | |
| tree | 03436d1aacfef387b1678190e326d9d8c1bbb339 /camel/providers/imapx/camel-imapx-utils.c | |
| parent | cbad98d6695491eb95dcf7a74cbf7fdba6fa3abd (diff) | |
| download | evolution-data-server-0895dac4c2c9bd800abb28984fe2ee50428773fa.tar.gz | |
Fix imapx_parse_flags to not just return the first UID repeatedly, export it.
(cherry picked from commit 768157a2b16bddac76aacb0a2d49ac59c9df10cf)
Diffstat (limited to 'camel/providers/imapx/camel-imapx-utils.c')
| -rw-r--r-- | camel/providers/imapx/camel-imapx-utils.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/camel/providers/imapx/camel-imapx-utils.c b/camel/providers/imapx/camel-imapx-utils.c index 1fc96f3f8..f5237dff0 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)); } } |
