aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/mbox
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-05-05 11:46:07 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-05-05 11:46:07 +0800
commit214c9105509631c39c4d9b60572ee32f0d6d7ea3 (patch)
tree611b14c8989668df11fa2c714ff13675e1406f3f /camel/providers/mbox
parent241a35c42fc0e5287b25bc4980415b0e1e61f422 (diff)
downloadgsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.tar
gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.tar.gz
gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.tar.bz2
gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.tar.lz
gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.tar.xz
gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.tar.zst
gsoc2013-evolution-214c9105509631c39c4d9b60572ee32f0d6d7ea3.zip
Maxcount is minimum of the max and the requested count, not the maximum :)
2000-05-04 NotZed <NotZed@HelixCode.com> * providers/mbox/camel-mbox-folder.c (summary_get_message_info): Maxcount is minimum of the max and the requested count, not the maximum :) * camel-mime-parser.c (folder_scan_content): Properly set midline, so we dont falsely catch offset boundary markers (i.e. From inside content). (folder_read): Set a sentinal on the end of the read data (\n) so we dont have to check the buffer boundary in the inner loop. (mempool_*): New experimental memory management routines, speed up simple structure parsing by about 25% ... not compiled in by default. Something similar may be needed for camel-mime-utils to address performance issues with g_malloc and friends. * camel-mime-utils.c: Added a macro w(x) used to wrap all warnings about mime/rfc violations, so they can be turned off. * camel-folder-summary.c (summary_build_content_info): Step after the end of a message ... Turn into a stand-alone program for testing and profiling. svn path=/trunk/; revision=2808
Diffstat (limited to 'camel/providers/mbox')
-rw-r--r--camel/providers/mbox/camel-mbox-folder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c
index 7a0151f515..bc1913cb0d 100644
--- a/camel/providers/mbox/camel-mbox-folder.c
+++ b/camel/providers/mbox/camel-mbox-folder.c
@@ -934,7 +934,7 @@ GPtrArray *summary_get_message_info (CamelFolder *folder, int first, int count)
CamelMboxFolder *mbox_folder = (CamelMboxFolder *)folder;
maxcount = camel_mbox_summary_message_count(mbox_folder->summary);
- maxcount = MAX(count, maxcount);
+ maxcount = MIN(count, maxcount);
for (i=first;i<maxcount;i++)
g_ptr_array_add(array, g_ptr_array_index(mbox_folder->summary->messages, i));