add ability to leave downloaded mail on server for n days
[claws.git] / src / inc.h
index 86241b73e6cd6b68d94f1c21db63851e9ea2b086..76f643c7444c791636d741c57faad71390b4f59a 100644 (file)
--- a/src/inc.h
+++ b/src/inc.h
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999,2000 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2002 Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -40,6 +40,8 @@ typedef struct _Pop3State             Pop3State;
 typedef enum
 {
        INC_SUCCESS,
+       INC_CONNECT_ERROR,
+       INC_AUTH_FAILED,
        INC_ERROR,
        INC_NOSPACE,
        INC_CANCEL
@@ -51,6 +53,8 @@ struct _IncProgressDialog
 
        MainWindow *mainwin;
 
+       gboolean show_dialog;
+
        GList *queue_list;      /* list of IncSession */
 };
 
@@ -77,13 +81,17 @@ struct _Pop3State
        gchar *pass;
        gint count;
        gint new;
-       gint bytes;
+       gint total_bytes;
        gint cur_msg;
+       gint cur_total_num;
+       gint cur_total_bytes;
+
+       Pop3MsgInfo *msg;
 
-       /* UIDL */
-       GHashTable *id_table;
-       GSList *id_list;
-       GSList *new_id_list;
+       GHashTable *uidl_table;
+       GSList *uidl_todelete_list;
+       
+       gboolean uidl_is_valid;
 
        gint error_val;
        IncState inc_state;
@@ -93,11 +101,26 @@ struct _Pop3State
 
 #define TIMEOUT_ITV    200
 
-void inc_mail                  (MainWindow     *mainwin);
-void inc_all_account_mail      (MainWindow     *mainwin);
+void inc_mail                  (MainWindow     *mainwin,
+                                gboolean notify);
+void inc_all_account_mail      (MainWindow     *mainwin,
+                                gboolean notify);
+gint inc_selective_download     (MainWindow    *mainwin, 
+                                gint           session_type);
 void inc_progress_update       (Pop3State      *state,
                                 Pop3Phase       phase);
 gint inc_drop_message          (const gchar    *file,
                                 Pop3State      *state);
 
+gboolean inc_is_active         (void);
+
+void inc_cancel_all            (void);
+
+void inc_lock                  (void);
+void inc_unlock                        (void);
+
+void inc_autocheck_timer_init  (MainWindow     *mainwin);
+void inc_autocheck_timer_set   (void);
+void inc_autocheck_timer_remove        (void);
+
 #endif /* __INC_H__ */