GNOME Bugzilla – Bug 364757
Faster implementation of imap_update_summary that consumes less bandwidth and memory
Last modified: 2007-01-30 01:18:56 UTC
This is a tracker bug where I will attach a patch for Matthew to reflow into a patch suitable for Evolution's HEAD.
Created attachment 75319 [details] [review] Implementation If something doesn't work or if you need assistance, just ask. You basically have to remove the camel_summary_folder_dump_mmap API for a non-mmapped version of Camel to work with this.
Also take a look at Bug #364766 for the mmap patch for Camel.
The g_free(resp) at 2393 etc should be something like this: if (type == CAMEL_IMAP_RESPONSE_TAGGED && resp) g_free (resp); Else it might become a double-free in case a cancellation happened while looping was happening. So only in case the response was a tagged one, free it. Else, leave it as a memory-leak as its status will be unknown.
Created attachment 75416 [details] [review] Some fixes