aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine/mail-ops.h
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@gnome.org>2012-03-29 13:58:42 +0800
committerSrinivasa Ragavan <sragavan@gnome.org>2012-03-29 14:01:09 +0800
commitafb3db076d573e52d634c7d5e2d40d8da9785941 (patch)
tree8182383e02d40758707bda324c70ab0efe1f0075 /libemail-engine/mail-ops.h
parentf5520742593c331b6af8c89a4b7b66ccdefb7ed4 (diff)
downloadgsoc2013-evolution-afb3db076d573e52d634c7d5e2d40d8da9785941.tar
gsoc2013-evolution-afb3db076d573e52d634c7d5e2d40d8da9785941.tar.gz
gsoc2013-evolution-afb3db076d573e52d634c7d5e2d40d8da9785941.tar.bz2
gsoc2013-evolution-afb3db076d573e52d634c7d5e2d40d8da9785941.tar.lz
gsoc2013-evolution-afb3db076d573e52d634c7d5e2d40d8da9785941.tar.xz
gsoc2013-evolution-afb3db076d573e52d634c7d5e2d40d8da9785941.tar.zst
gsoc2013-evolution-afb3db076d573e52d634c7d5e2d40d8da9785941.zip
Add ability to specify INBOX for non-storage type accounts. Email daemon
allows to store mails in individual INBOX rather than a common one.
Diffstat (limited to 'libemail-engine/mail-ops.h')
-rw-r--r--libemail-engine/mail-ops.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/libemail-engine/mail-ops.h b/libemail-engine/mail-ops.h
index 236dd2325f..e4c2002a0b 100644
--- a/libemail-engine/mail-ops.h
+++ b/libemail-engine/mail-ops.h
@@ -71,15 +71,27 @@ void mail_send_queue (EMailSession *session,
void (*done)(gpointer data),
gpointer data);
+typedef void (*MailProviderFetchLockFunc) (const char *source);
+typedef void (*MailProviderFetchUnlockFunc) (const char *source);
+typedef CamelFolder *
+ (*MailProviderFetchInboxFunc) (const char *source,
+ GCancellable *cancellable,
+ GError **error);
+
void mail_fetch_mail (CamelStore *store,
gint keep,
+ CamelFetchType fetch_type,
+ gint fetch_count,
const gchar *type,
+ MailProviderFetchLockFunc lock_func,
+ MailProviderFetchUnlockFunc unlock_func,
+ MailProviderFetchInboxFunc fetch_inbox_func,
GCancellable *cancellable,
CamelFilterGetFolderFunc get_folder,
gpointer get_data,
CamelFilterStatusFunc *status,
gpointer status_data,
- void (*done)(gpointer data),
+ void (*done)(int still_more, gpointer data),
gpointer data);
void mail_filter_folder (EMailSession *session,