2005-01-07 [paul] 0.9.13cvs29.1
[claws.git] / src / pop.h
index 044c77c284ae5a0a5e9c872807de84e12a1a27ee..d33bea5baa02e5d037e0a6c73c68505c815934ff 100644 (file)
--- a/src/pop.h
+++ b/src/pop.h
@@ -40,6 +40,7 @@ struct _MailReceiveData
 {
        Pop3Session *session;
        char *data;
+       guint data_len;
 };
 typedef struct _MailReceiveData        MailReceiveData;
 
@@ -64,6 +65,7 @@ typedef enum {
        POP3_TOP_RECV,
        POP3_DELETE,
        POP3_LOGOUT,
+       POP3_DONE,
        POP3_ERROR,
 
        N_POP3_STATE
@@ -98,12 +100,6 @@ typedef enum {
        RECV_TIME_KEEP     = 2
 } RecvTime;
 
-typedef enum {
-       POP3_PARTIAL_DLOAD_UNKN = 0,
-       POP3_PARTIAL_DLOAD_DLOAD= 1,
-       POP3_PARTIAL_DLOAD_DELE = 2
-} PartialDownloadAction;
-
 struct _Pop3MsgInfo
 {
        gint size;
@@ -151,27 +147,15 @@ struct _Pop3Session
 
        /* virtual method to drop message */
        gint (*drop_message)    (Pop3Session    *session,
-                                const gchar    *file,
-                                gboolean        update_file);
+                                const gchar    *file);
 };
 
 #define POPBUFSIZE     512
-#define IDLEN          128
-
+/* #define IDLEN       128 */
+#define IDLEN          POPBUFSIZE
 
 Session *pop3_session_new      (PrefsAccount   *account);
 void pop3_get_uidl_table       (PrefsAccount   *account, Pop3Session *session);
 gint pop3_write_uidl_list      (Pop3Session    *session);
-gint pop3_msg_in_uidl_list     (const gchar    *server, 
-                                const gchar    *login, 
-                                const gchar    *uidl);
-int pop3_mark_for_download     (const gchar    *server, 
-                                const gchar    *login, 
-                                const gchar    *uidl, 
-                                const gchar    *filename);
-int pop3_mark_for_delete       (const gchar    *server, 
-                                const gchar    *login, 
-                                const gchar    *uidl, 
-                                const gchar    *filename);
 
 #endif /* __POP_H__ */