add ability to leave downloaded mail on server for n days
[claws.git] / src / prefs_account.h
index f317d3f94aebba2ae413cc93139c7dee8f786294..45f1d7f6554ab0c0a77649cd1bfcec646bcbbac4 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2001 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
@@ -43,6 +43,15 @@ typedef enum {
        A_LOCAL
 } RecvProtocol;
 
+typedef enum {
+       /* login and retrieve messages, as before */
+       RETR_NORMAL,
+       /* send TOP to server and retrieve Header */
+       RETR_HEADER, 
+       /* delete selected Headers on Server */
+       DELE_HEADER 
+} Pop3SessionType;
+
 #if USE_GPGME
 typedef enum {
        SIGN_KEY_DEFAULT,
@@ -90,24 +99,34 @@ struct _PrefsAccount
 
        /* Temporarily preserved password */
        gchar *tmp_pass;
-       gchar *tmp_smtp_passwd;
 
        /* Receive */
        gboolean rmmail;
+       gchar *leave_time;      
        gboolean getall;
        gboolean recv_at_getall;
+       gboolean enable_size_limit;
+       gint size_limit;
        gboolean filter_on_recv;
        gchar *inbox;
 
+       /* selective Download */
+       gint   session_type;
+       GSList *to_delete;
+
        gchar *imap_dir;
 
        /* Send */
-       gboolean  add_date;
-       gboolean  gen_msgid;
-       gboolean  add_customhdr;
+       gboolean add_date;
+       gboolean gen_msgid;
+       gboolean add_customhdr;
        gboolean use_smtp_auth;
-       gchar    *smtp_userid;
-       gchar    *smtp_passwd;
+       gchar *smtp_userid;
+       gchar *smtp_passwd;
+
+       /* Temporarily preserved password */
+       gchar *tmp_smtp_pass;
+
        gboolean pop_before_smtp;
 
        GSList *customhdr_list;
@@ -141,6 +160,8 @@ struct _PrefsAccount
        gushort   nntpport;
        gboolean  set_domain;
        gchar    *domain;
+       gboolean  mark_crosspost_read;
+       gint      crosspost_col;
 
        /* Use this command to open a socket, rather than doing so
         * directly.  Good if you want to perhaps use a special socks