remove selective download
[claws.git] / src / inc.h
index eaead51d5e58071315baea71696f0d12ea55af34..013864e8ade3d7982c7c9b2ee67c8fef71a0acb5 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-2002 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2003 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
 #include "mainwindow.h"
 #include "progressdialog.h"
 #include "prefs_account.h"
+#include "session.h"
 #include "pop.h"
-#include "automaton.h"
-#include "socket.h"
+
+#define MAIL_FILTERING_HOOKLIST "mail_filtering_hooklist"
 
 typedef struct _IncProgressDialog      IncProgressDialog;
 typedef struct _IncSession             IncSession;
-typedef struct _Pop3State              Pop3State;
+typedef struct _MailFilteringData      MailFilteringData;
 
 typedef enum
 {
        INC_SUCCESS,
        INC_CONNECT_ERROR,
        INC_AUTH_FAILED,
+       INC_LOCKED,
        INC_ERROR,
-       INC_NOSPACE,
+       INC_NO_SPACE,
+       INC_IO_ERROR,
+       INC_SOCKET_ERROR,
        INC_CANCEL
 } IncState;
 
@@ -61,45 +65,15 @@ struct _IncProgressDialog
 
 struct _IncSession
 {
-       Pop3State *pop3_state;
-       Automaton *atm;
+       Session *session;
+       IncState inc_state;
 
        gpointer data;
 };
 
-struct _Pop3State
+struct _MailFilteringData
 {
-       gboolean cancelled;
-       PrefsAccount *ac_prefs;
-       GHashTable *folder_table;
-
-       gchar *prev_folder;
-
-       SockInfo *sockinfo;
-
-       gchar *greeting;
-       gchar *user;
-       gchar *pass;
-       gint count;
-       gint new;
-       gint total_bytes;
-       gint cur_msg;
-       gint cur_total_num;
-       gint cur_total_bytes;
-
-       Pop3MsgInfo *msg;
-
-       GHashTable *uidl_table;
-       GSList *uidl_todelete_list;
-       
-       gboolean uidl_is_valid;
-
-       time_t current_time;
-
-       gint error_val;
-       IncState inc_state;
-
-       IncSession *session;
+       MsgInfo *msginfo;
 };
 
 #define TIMEOUT_ITV    200
@@ -108,13 +82,11 @@ void inc_mail                      (MainWindow     *mainwin,
                                 gboolean notify);
 void inc_all_account_mail      (MainWindow     *mainwin,
                                 gboolean notify);
-void inc_selective_download     (MainWindow    *mainwin, 
-                                PrefsAccount *acc,
-                                gint         session);
-void inc_progress_update       (Pop3State      *state,
-                                Pop3Phase       phase);
+void inc_progress_update       (Pop3Session    *session);
 gint inc_drop_message          (const gchar    *file,
-                                Pop3State      *state);
+                                Pop3Session    *session);
+
+void inc_pop_before_smtp       (PrefsAccount   *acc);
 
 gboolean inc_is_active         (void);