diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-07-20 12:29:54 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-07-20 12:29:54 +0800 |
commit | b05db271facb10107b78a7d7c58a1ab9e744eda5 (patch) | |
tree | a0af23d706ae118b5489779abbb3e501958160e2 /camel | |
parent | cb1c400a5007f81228e8d620f87cb1adeb86fbce (diff) | |
download | gsoc2013-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')
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 4 |
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 */ |