diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-06-17 09:11:07 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-06-17 09:11:07 +0800 |
commit | ccc9fd091a05bb58594caed0555a0b0db10086ad (patch) | |
tree | 7a85698810c3ed8cd2bd347c629ac1eddbd0ef79 /default_user | |
parent | fc121328c9bb32c37ad00359b1e88de5aa0c8784 (diff) | |
download | gsoc2013-evolution-ccc9fd091a05bb58594caed0555a0b0db10086ad.tar gsoc2013-evolution-ccc9fd091a05bb58594caed0555a0b0db10086ad.tar.gz gsoc2013-evolution-ccc9fd091a05bb58594caed0555a0b0db10086ad.tar.bz2 gsoc2013-evolution-ccc9fd091a05bb58594caed0555a0b0db10086ad.tar.lz gsoc2013-evolution-ccc9fd091a05bb58594caed0555a0b0db10086ad.tar.xz gsoc2013-evolution-ccc9fd091a05bb58594caed0555a0b0db10086ad.tar.zst gsoc2013-evolution-ccc9fd091a05bb58594caed0555a0b0db10086ad.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.
svn path=/trunk/; revision=26370
Diffstat (limited to 'default_user')
0 files changed, 0 insertions, 0 deletions