aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-20 12:29:54 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-20 12:29:54 +0800
commitb05db271facb10107b78a7d7c58a1ab9e744eda5 (patch)
treea0af23d706ae118b5489779abbb3e501958160e2 /camel/providers/imap
parentcb1c400a5007f81228e8d620f87cb1adeb86fbce (diff)
downloadgsoc2013-evolution-b05db271facb10107b78a7d7c58a1ab9e744eda5.tar
gsoc2013-evolution-b05db271facb10107b78a7d7c58a1ab9e744eda5.tar.gz
gsoc2013-evolution-b05db271facb10107b78a7d7c58a1ab9e744eda5.tar.bz2
gsoc2013-evolution-b05db271facb10107b78a7d7c58a1ab9e744eda5.tar.lz
gsoc2013-evolution-b05db271facb10107b78a7d7c58a1ab9e744eda5.tar.xz
gsoc2013-evolution-b05db271facb10107b78a7d7c58a1ab9e744eda5.tar.zst
gsoc2013-evolution-b05db271facb10107b78a7d7c58a1ab9e744eda5.zip
Oops. Fix UID parser to allow 0 and 9 to be in the range of valid UID
2000-07-20 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-folder.c (imap_get_summary): (imap_get_message_info): Oops. Fix UID parser to allow 0 and 9 to be in the range of valid UID chars. svn path=/trunk/; revision=4233
Diffstat (limited to 'camel/providers/imap')
-rw-r--r--camel/providers/imap/camel-imap-folder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 91d04251dc..11e52124b1 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -1096,7 +1096,7 @@ imap_get_summary (CamelFolder *folder, CamelException *ex)
}
for (uid += 5; *uid && (*uid < '0' || *uid > '9'); uid++); /* advance to <uid> */
- for (q = uid; *q && *q > '0' && *q < '9'; q++); /* find the end of the <uid> */
+ for (q = uid; *q && *q >= '0' && *q <= '9'; q++); /* find the end of the <uid> */
info->uid = g_strndup (uid, (gint)(q - uid));
d(fprintf (stderr, "*** info->uid = %s\n", info->uid));
@@ -1263,7 +1263,7 @@ imap_get_message_info (CamelFolder *folder, const char *uid)
}
for (muid += 5; *muid && (*muid < '0' || *muid > '9'); muid++); /* advance to <uid> */
- for (q = muid; *q && *q > '0' && *q < '9'; q++); /* find the end of the <uid> */
+ for (q = muid; *q && *q >= '0' && *q <= '9'; q++); /* find the end of the <uid> */
muid = g_strndup (muid, (gint)(q - muid));
/* make sure the UIDs are identical */