aboutsummaryrefslogtreecommitdiffstats
path: root/smime
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-06-17 10:08:16 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-06-17 10:08:16 +0800
commit4318f82f0381150d57789dc9b707bf0ca448f0b3 (patch)
treefacb5d530a38216d07e306b267756a5e88d0ee2b /smime
parentccc9fd091a05bb58594caed0555a0b0db10086ad (diff)
downloadgsoc2013-evolution-4318f82f0381150d57789dc9b707bf0ca448f0b3.tar.gz
gsoc2013-evolution-4318f82f0381150d57789dc9b707bf0ca448f0b3.tar.zst
gsoc2013-evolution-4318f82f0381150d57789dc9b707bf0ca448f0b3.zip
Added a 'first' member to the imap_fetch_all_t struct so we can use that
2004-06-16 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-summary.c: Added a 'first' member to the imap_fetch_all_t struct so we can use that as a base offset in our GPtrArray, allowing us to limit resource consumption which could otherwise get quite large. Also added a ChangeInfo member that was needed for changes to untagged_fetch_all(). (imap4_fetch_all_add): Use fetch->first as a base offset and change int i to guint32 i. Also updated to sue the fetch->changes. (imap4_fetch_all_update): Same. (untagged_fetch_all): Same - this is where it is really valuable, since we can avoid adding elements to the GPtrArray that we won't even use. Also needed to change code a big in case index < fetch->first (which could happen if a server notified us of a FLAGS change for a message we didn't request info about). (imap4_fetch_all_free): Free the ChangeInfo. (imap4_summary_fetch_all): Init fetch->changes and fetch->first. (imap4_summary_fetch_flags): Same. (camel_imap4_summary_flush_updates): Only request envelope info if first <= summary->exists. Avoids needless queries. (info_uid_sort): #if 0'd (camel_imap4_summary_flush_updates): No need to sort the summary - this should never have been needed. I can't remember why I did this... svn path=/trunk/; revision=26371
Diffstat (limited to 'smime')
0 files changed, 0 insertions, 0 deletions