From 0297c01437237045337130d80cfd9da6f0a270de Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 14 May 2003 17:53:47 +0000 Subject: Added a note to the comment block for this function noting that uids MUST 2003-05-13 Jeffrey Stedfast * providers/imap/camel-imap-utils.c (imap_uid_array_to_set): Added a note to the comment block for this function noting that uids MUST be in sorted order. * providers/imap/camel-imap-folder.c (imap_expunge_uids_online): Sort the uids before splitting them into UID set chunks. The code that splits the uid array into sets expects the uids to be in sorted order. Fixes bug #42854. * providers/imap/camel-imap-command.c (imap_command_start): Re-enable camel_verbose_debug logging. svn path=/trunk/; revision=21173 --- camel/providers/imap/camel-imap-utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'camel/providers/imap/camel-imap-utils.c') diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c index 65819475fb..61c27cb7a9 100644 --- a/camel/providers/imap/camel-imap-utils.c +++ b/camel/providers/imap/camel-imap-utils.c @@ -1079,6 +1079,8 @@ get_summary_uid_numeric (CamelFolderSummary *summary, int index) * * After calling, @lastuid will be set the index of the first uid * *not* included in the returned set string. + * + * Note: @uids MUST be in sorted order for this code to work properly. * * Return value: the set, which the caller must free with g_free() **/ -- cgit