2006-08-10 [colin] 2.4.0cvs39
[claws.git] / src / etpan / imap-thread.h
index cbda7c9a4b8021707f7b7bde8ddcd3110a1db1d2..ee59d62a0858c12409ba95070312b2eb1b0de7bd 100644 (file)
@@ -8,7 +8,7 @@
 #define IMAP_SET_MAX_COUNT 100
 
 void imap_main_set_timeout(int sec);
-void imap_main_init(void);
+void imap_main_init(gboolean skip_ssl_cert_check);
 void imap_main_done(void);
 
 void imap_init(Folder * folder);
@@ -16,7 +16,7 @@ void imap_done(Folder * folder);
 
 int imap_threaded_connect(Folder * folder, const char * server, int port);
 int imap_threaded_connect_ssl(Folder * folder, const char * server, int port);
-struct mailimap_capability_data * imap_threaded_capability(Folder *folder);
+struct mailimap_capability_data * imap_threaded_capability(Folder *folder, int *ok);
 int imap_threaded_connect_cmd(Folder * folder, const char * command,
                              const char * server, int port);
 
@@ -29,10 +29,11 @@ int imap_threaded_login(Folder * folder,
                        const char * login, const char * password,
                        const char * type);
 int imap_threaded_status(Folder * folder, const char * mb,
-               struct mailimap_mailbox_data_status ** data_status);
+               struct mailimap_mailbox_data_status ** data_status,
+               guint mask);
 
 int imap_threaded_noop(Folder * folder, unsigned int * p_exists);
-int imap_threaded_starttls(Folder * folder);
+int imap_threaded_starttls(Folder * folder, const gchar *host, int port);
 int imap_threaded_create(Folder * folder, const char * mb);
 int imap_threaded_rename(Folder * folder,
                         const char * mb, const char * new_name);
@@ -50,6 +51,7 @@ enum {
        IMAP_SEARCH_TYPE_UNSEEN,
        IMAP_SEARCH_TYPE_ANSWERED,
        IMAP_SEARCH_TYPE_FLAGGED,
+       IMAP_SEARCH_TYPE_DELETED,
 };
 
 int imap_threaded_search(Folder * folder, int search_type,
@@ -78,7 +80,8 @@ void imap_fetch_env_free(carray * env_list);
 
 int imap_threaded_append(Folder * folder, const char * mailbox,
                         const char * filename,
-                        struct mailimap_flag_list * flag_list);
+                        struct mailimap_flag_list * flag_list,
+                        int *uid);
 
 int imap_threaded_expunge(Folder * folder);