{
Pop3Session *session;
char *data;
+ guint data_len;
};
typedef struct _MailReceiveData MailReceiveData;
POP3_TOP_RECV,
POP3_DELETE,
POP3_LOGOUT,
+ POP3_DONE,
POP3_ERROR,
N_POP3_STATE
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;
/* 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__ */