| Top |
| CamelUIDCache * | camel_uid_cache_new () |
| gboolean | camel_uid_cache_save () |
| void | camel_uid_cache_destroy () |
| GPtrArray * | camel_uid_cache_get_new_uids () |
| void | camel_uid_cache_save_uid () |
| void | camel_uid_cache_free_uids () |
CamelUIDCache *
camel_uid_cache_new (const gchar *filename);
Creates a new UID cache, initialized from filename
. If filename
doesn't already exist, the UID cache will be empty. Otherwise, if
it does exist but can't be read, the function will return NULL.
gboolean
camel_uid_cache_save (CamelUIDCache *cache);
Attempts to save cache
back to disk.
void
camel_uid_cache_destroy (CamelUIDCache *cache);
Destroys cache
and frees its data.
GPtrArray * camel_uid_cache_get_new_uids (CamelUIDCache *cache,GPtrArray *uids);
Returns an array of UIDs from uids
that are not in cache
, and
removes UIDs from cache
that aren't in uids
.
void camel_uid_cache_save_uid (CamelUIDCache *cache,const gchar *uid);
Marks a uid for saving.