diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2004-11-02 03:58:38 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-11-02 03:58:38 +0800 |
commit | c611fef68632d0a5f17b01458d15db41e7f2605c (patch) | |
tree | 6e066d030dc244f21fa2c4bd654374fde0e6e39a /camel/providers/imap4/camel-imap4-folder.h | |
parent | 588322d706050ca1403fee983b7787f333594fac (diff) | |
download | gsoc2013-evolution-c611fef68632d0a5f17b01458d15db41e7f2605c.tar gsoc2013-evolution-c611fef68632d0a5f17b01458d15db41e7f2605c.tar.gz gsoc2013-evolution-c611fef68632d0a5f17b01458d15db41e7f2605c.tar.bz2 gsoc2013-evolution-c611fef68632d0a5f17b01458d15db41e7f2605c.tar.lz gsoc2013-evolution-c611fef68632d0a5f17b01458d15db41e7f2605c.tar.xz gsoc2013-evolution-c611fef68632d0a5f17b01458d15db41e7f2605c.tar.zst gsoc2013-evolution-c611fef68632d0a5f17b01458d15db41e7f2605c.zip |
Remove expunged messages from the cache.
2004-11-01 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-summary.c
(camel_imap4_summary_expunge): Remove expunged messages from the
cache.
(camel_imap4_summary_set_uidvalidity): Clear the cache if the
UIDVALIDITY has changed.
* providers/imap4/camel-imap4-folder.c (imap4_get_message): If the
message exists in the cache, use that rather than fetching it from
the server and cache messages fetched from the server for later
use.
(camel_imap4_folder_finalize): Unref the cache if non-NULL.
(camel_imap4_folder_new): Create the CamelDataCache.
svn path=/trunk/; revision=27784
Diffstat (limited to 'camel/providers/imap4/camel-imap4-folder.h')
-rw-r--r-- | camel/providers/imap4/camel-imap4-folder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/providers/imap4/camel-imap4-folder.h b/camel/providers/imap4/camel-imap4-folder.h index a5d3ce3cc0..c4936dfabe 100644 --- a/camel/providers/imap4/camel-imap4-folder.h +++ b/camel/providers/imap4/camel-imap4-folder.h @@ -23,6 +23,7 @@ #include <camel/camel-store.h> #include <camel/camel-folder.h> +#include <camel/camel-data-cache.h> #ifdef __cplusplus extern "C" { @@ -43,6 +44,7 @@ struct _CamelIMAP4Folder { CamelFolder parent_object; CamelFolderSearch *search; + CamelDataCache *cache; char *cachedir; char *utf7_name; |