| Top |
| CamelDataCache * | camel_pop3_store_ref_cache () |
| CamelPOP3Engine * | camel_pop3_store_ref_engine () |
| gboolean | camel_pop3_store_expunge () |
| CamelStream * | camel_pop3_store_cache_add () |
| CamelStream * | camel_pop3_store_cache_get () |
| gboolean | camel_pop3_store_cache_has () |
CamelDataCache *
camel_pop3_store_ref_cache (CamelPOP3Store *store);
Returns the CamelDataCache for store
.
The returned CamelDataCache is referenced for thread-safety and must be
unreferenced with g_object_unref() when finished with it.
CamelPOP3Engine *
camel_pop3_store_ref_engine (CamelPOP3Store *store);
Returns the CamelPOP3Engine for store
.
The returned CamelPOP3Engine is referenced for thread-safety and must be
unreferenced with g_object_unref() when finished with it.
gboolean camel_pop3_store_expunge (CamelPOP3Store *store,GCancellable *cancellable,GError **error);
Expunge messages from the store. This will result in the connection being closed, which may cause later commands to fail if they can't reconnect.
CamelStream * camel_pop3_store_cache_add (CamelPOP3Store *store,const gchar *uid,GIOStream **out_io_stream,GError **error);
Creates a cache file for uid
in store
and returns a CamelStream for
writing to it. On success the underlying atomic GIOStream is also
returned in out_io_stream
(transfer full); the caller must pass it to
camel_data_cache_commit_atomic() on success or
camel_data_cache_discard_atomic() on failure. If an error occurs the
function sets error
and returns NULL.
The returned CamelStream is referenced for thread-safety and must be unreferenced when finished with it.
CamelStream * camel_pop3_store_cache_get (CamelPOP3Store *store,const gchar *uid,GError **error);
Opens the cache file for uid
in store
and returns a CamelStream for it.
If no matching cache file exists, the function returns NULL. If an error
occurs in opening the cache file, the function sets error
and returns
NULL.
The returned CamelStream is referenced for thread-safety and must be unreferenced when finished with it.
gboolean camel_pop3_store_cache_has (CamelPOP3Store *store,const gchar *uid);
Returns whether store
has a cached message for uid
.