aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/providers/imap/camel-imap-folder.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 0e9f81cddc..ea8faf7501 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2000-07-19 Jeffrey Stedfast <fejj@helixcode.com>
* providers/imap/camel-imap-folder.c: General cleanup working towards
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 */