From b05db271facb10107b78a7d7c58a1ab9e744eda5 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 20 Jul 2000 04:29:54 +0000 Subject: Oops. Fix UID parser to allow 0 and 9 to be in the range of valid UID 2000-07-20 Jeffrey Stedfast * 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 --- camel/providers/imap/camel-imap-folder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'camel/providers/imap/camel-imap-folder.c') 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 */ - for (q = uid; *q && *q > '0' && *q < '9'; q++); /* find the end of the */ + for (q = uid; *q && *q >= '0' && *q <= '9'; q++); /* find the end of the */ 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 */ - for (q = muid; *q && *q > '0' && *q < '9'; q++); /* find the end of the */ + for (q = muid; *q && *q >= '0' && *q <= '9'; q++); /* find the end of the */ muid = g_strndup (muid, (gint)(q - muid)); /* make sure the UIDs are identical */ -- cgit