/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 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,
#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
gchar *in_ssl_client_cert_file;
gchar *in_ssl_client_cert_pass;
+ gboolean ssl_certs_auto_accept;
gboolean use_nonblocking_ssl;
- /* Temporarily preserved password */
- gchar *tmp_pass;
-
/* Receive */
gboolean use_apop_auth;
gboolean rmmail;
gint imap_auth_type;
+ gboolean receive_in_progress;
+
/* Send */
gboolean gen_msgid;
+ gboolean gen_xmailer;
gboolean add_customhdr;
gboolean use_smtp_auth;
SMTPAuthType smtp_auth_type;
gchar *smtp_passwd;
gchar *session_smtp_passwd;
- /* Temporarily preserved password */
- gchar *tmp_smtp_pass;
-
gboolean pop_before_smtp;
gint pop_before_smtp_timeout;
time_t last_pop_login_time;
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;
/* Unique account ID */
gint account_id;
- Folder *folder;
+ struct _Folder *folder;
GHashTable *privacy_prefs;
SMTPSession *session;
};
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);