mark crossposted messages as read
[claws.git] / src / prefs_account.h
index 45ca63821e5e909c8dd9d38bd15268376e832a7e..139f9bb801c6641225dfbda60a8d3e77fd4f7d10 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
@@ -30,6 +30,10 @@ typedef struct _PrefsAccount PrefsAccount;
 
 #include "folder.h"
 
+#ifdef USE_GPGME
+#  include "rfc2015.h"
+#endif
+
 typedef enum {
        A_POP3,
        A_APOP,
@@ -39,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,
@@ -47,6 +60,14 @@ typedef enum {
 } SignKeyType;
 #endif /* USE_GPGME */
 
+#if USE_SSL
+typedef enum {
+       SSL_SMTP_NONE,
+       SSL_SMTP_TUNNEL,
+       SSL_SMTP_STARTTLS
+} SSLSMTPType;
+#endif /* USE_SSL */
+
 struct _PrefsAccount
 {
        gchar *account_name;
@@ -58,7 +79,6 @@ struct _PrefsAccount
 
        /* Server info */
        RecvProtocol protocol;
-       gchar *inbox;
        gchar *recv_server;
        gchar *smtp_server;
        gchar *nntp_server;
@@ -70,6 +90,13 @@ struct _PrefsAccount
        gboolean use_mail_command;
        gchar * mail_command;
 
+#if USE_SSL
+       /* SSL */
+       gboolean ssl_pop;
+       gboolean ssl_imap;
+       SSLSMTPType ssl_smtp;
+#endif /* USE_SSL */
+
        /* Temporarily preserved password */
        gchar *tmp_pass;
 
@@ -77,30 +104,46 @@ struct _PrefsAccount
        gboolean rmmail;
        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  set_autocc;
-       gchar    *auto_cc;
-       gboolean  set_autobcc;
-       gchar    *auto_bcc;
-       gboolean  set_autoreplyto;
-       gchar    *auto_replyto;
+       gboolean add_date;
+       gboolean gen_msgid;
+       gboolean add_customhdr;
        gboolean use_smtp_auth;
+       gchar *smtp_userid;
+       gchar *smtp_passwd;
+
+       /* Temporarily preserved password */
+       gchar *tmp_smtp_pass;
+
        gboolean pop_before_smtp;
 
        GSList *customhdr_list;
 
        /* Compose */
        gchar *sig_path;
+       gboolean  set_autocc;
+       gchar    *auto_cc;
+       gboolean  set_autobcc;
+       gchar    *auto_bcc;
+       gboolean  set_autoreplyto;
+       gchar    *auto_replyto;
 
 #if USE_GPGME
        /* Privacy */
+       gboolean default_encrypt;
+       gboolean ascii_armored;
+       gboolean default_sign;
        SignKeyType sign_key;
        gchar *sign_key_id;
 #endif /* USE_GPGME */
@@ -110,15 +153,25 @@ struct _PrefsAccount
        gushort   smtpport;
        gboolean  set_popport;
        gushort   popport;
-#if USE_SSL
-       gboolean  pop_ssl;
-#endif
        gboolean  set_imapport;
        gushort   imapport;
        gboolean  set_nntpport;
        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
+        * tunnel command, or run IMAP-over-SSH.  In this case the
+        * server, port etc are only for the user's own information
+        * and are not used.  username and password are used to
+        * authenticate the account only if necessary, since some
+        * tunnels will implicitly authenticate by running e.g. imapd
+        * as a particular user. */
+       gboolean  set_tunnelcmd;
+       gchar     *tunnelcmd;
 
        /* Default or not */
        gboolean is_default;