2008-09-01 [colin] 3.5.0cvs88
[claws.git] / src / etpan / imap-thread.h
index 2426f220d8227a2a87c14f4347180b63482f3731..0e426ef5030f167a4d3c7cec48c4e9109d6c1e4a 100644 (file)
 
 #define IMAP_SET_MAX_COUNT 500
 
+typedef enum
+{
+       IMAP_FLAG_SEEN          = 1 << 0,
+       IMAP_FLAG_ANSWERED      = 1 << 1,
+       IMAP_FLAG_FLAGGED       = 1 << 2,
+       IMAP_FLAG_DELETED       = 1 << 3,
+       IMAP_FLAG_DRAFT         = 1 << 4,
+       IMAP_FLAG_FORWARDED     = 1 << 5,
+       IMAP_FLAG_SPAM          = 1 << 6,
+       IMAP_FLAG_HAM           = 1 << 7
+} IMAPFlags;
+
 void imap_main_set_timeout(int sec);
 void imap_main_init(gboolean skip_ssl_cert_check);
 void imap_main_done(void);
@@ -70,7 +82,8 @@ int imap_threaded_rename(Folder * folder,
 int imap_threaded_delete(Folder * folder, const char * mb);
 int imap_threaded_select(Folder * folder, const char * mb,
                         gint * exists, gint * recent, gint * unseen,
-                        guint32 * uid_validity, gint * can_create_flags);
+                        guint32 * uid_validity, gint * can_create_flags,
+                        GSList **ok_flags);
 int imap_threaded_examine(Folder * folder, const char * mb,
                          gint * exists, gint * recent, gint * unseen,
                          guint32 * uid_validity);
@@ -85,6 +98,7 @@ enum {
        IMAP_SEARCH_TYPE_FLAGGED,
        IMAP_SEARCH_TYPE_DELETED,
        IMAP_SEARCH_TYPE_FORWARDED,
+       IMAP_SEARCH_TYPE_SPAM,
 };
 
 int imap_threaded_search(Folder * folder, int search_type,