diff options
author | Dan Winship <danw@src.gnome.org> | 2000-08-13 11:06:34 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-08-13 11:06:34 +0800 |
commit | 52d4488d7dcc477ce6fa89d5c548ee2fddcef1b3 (patch) | |
tree | a73ab9de28af6e6588e85b3c5b8c3432b71cae37 /camel | |
parent | fcad059f762ddc8ec8ee190e6557ee7451edc8c6 (diff) | |
download | gsoc2013-evolution-52d4488d7dcc477ce6fa89d5c548ee2fddcef1b3.tar.gz gsoc2013-evolution-52d4488d7dcc477ce6fa89d5c548ee2fddcef1b3.tar.zst gsoc2013-evolution-52d4488d7dcc477ce6fa89d5c548ee2fddcef1b3.zip |
Don't assume the FETCH results will come back in the order they were
* providers/imap/camel-imap-folder.c (imap_get_summary_internal):
Don't assume the FETCH results will come back in the order they
were requested.
svn path=/trunk/; revision=4791
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 81255a8afc..1c22cffd82 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2000-08-12 Dan Winship <danw@helixcode.com> + + * providers/imap/camel-imap-folder.c (imap_get_summary_internal): + Don't assume the FETCH results will come back in the order they + were requested. + 2000-08-12 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-store.c diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 89604b5cac..94a3bd0cac 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -1175,7 +1175,7 @@ imap_get_summary_internal (CamelFolder *folder, CamelException *ex) d(fprintf (stderr, "*** info->uid = %s\n", info->uid)); /* now lets grab the FLAGS */ - if (!(flags = strstr (q, "FLAGS "))) { + if (!(flags = strstr (headers->pdata[i], "FLAGS "))) { d(fprintf (stderr, "We didn't seem to get any flags for %d...\n", i)); g_free (info->uid); g_free (info); @@ -1204,7 +1204,7 @@ imap_get_summary_internal (CamelFolder *folder, CamelException *ex) /* construct the header list */ /* fast-forward to beginning of header info... */ - for (header = q; *header && *header != '\n'; header++); + for (header = headers->pdata[i]; *header && *header != '\n'; header++); h = NULL; for (j = 0; *header_fields[j]; j++) { struct _header_raw *raw; |