Make Message-ID string generation less confusing.
[claws.git] / src / prefs_account.h
index 4dc5227f397d2d00ec1bd777878d1099ba8bae76..f7feb137f8683b3a13311542a67c55fc70c227b5 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2011 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
  *
  * 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
 #define PREFS_ACCOUNT_H
 
 #ifdef HAVE_CONFIG_H
-#  include "config.h"
+#include "claws-features.h"
 #endif
 #include "ssl.h"
 typedef struct _PrefsAccount   PrefsAccount;
 
 typedef enum {
        A_POP3,
-       A_APOP, /* deprecated */
-       A_RPOP, /* deprecated */
        A_IMAP4,
        A_NNTP,
        A_LOCAL,
@@ -46,9 +44,10 @@ typedef enum {
 #include <glib.h>
 
 #include "smtp.h"
-#include "folder.h"
 #include "gtk/prefswindow.h"
 
+struct _Folder;
+
 /* Changes to this data structure might need to be reflected
  * in account_clone() */
 struct _PrefsAccount
@@ -85,6 +84,7 @@ struct _PrefsAccount
        gchar *in_ssl_client_cert_file;
        gchar *in_ssl_client_cert_pass;
 
+       gboolean ssl_certs_auto_accept;
        gboolean use_nonblocking_ssl;
 
        /* Receive */
@@ -104,6 +104,8 @@ struct _PrefsAccount
 
        gint imap_auth_type;
 
+       gboolean receive_in_progress;
+
        /* Send */
        gboolean gen_msgid;
        gboolean gen_xmailer;
@@ -165,6 +167,8 @@ struct _PrefsAccount
        gushort   nntpport;
        gboolean  set_domain;
        gchar    *domain;
+       gboolean  set_gnutls_priority;
+       gchar    *gnutls_priority;
        gboolean  msgid_with_addr;
        gboolean  mark_crosspost_read;
        gint      crosspost_col;
@@ -185,7 +189,6 @@ struct _PrefsAccount
        gchar *imap_dir;
        gboolean imap_subsonly;
        gboolean low_bandwidth;
-       gboolean imap_use_trash;
 
        gboolean set_sent_folder;
        gchar *sent_folder;
@@ -201,7 +204,7 @@ struct _PrefsAccount
        /* Unique account ID */
        gint account_id;
 
-       Folder *folder;
+       struct _Folder *folder;
        GHashTable *privacy_prefs;
        SMTPSession *session;
 };
@@ -220,6 +223,7 @@ PrefsAccount *prefs_account_open    (PrefsAccount   *ac_prefs, gboolean *dirty);
 
 const gchar *prefs_account_get_privacy_prefs(PrefsAccount *account, gchar *id);
 void prefs_account_set_privacy_prefs(PrefsAccount *account, gchar *id, gchar *new_value);
+gchar *prefs_account_generate_msgid(PrefsAccount *account);
 
 void prefs_account_register_page       (PrefsPage      *page);
 void prefs_account_unregister_page     (PrefsPage      *page);