/*
* 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,
#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;
/* Receive */
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;
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;
gchar *imap_dir;
gboolean imap_subsonly;
gboolean low_bandwidth;
- gboolean imap_use_trash;
gboolean set_sent_folder;
gchar *sent_folder;
/* 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);
+gchar *prefs_account_cache_dir (PrefsAccount *ac_prefs, gboolean for_server);
+
#endif /* PREFS_ACCOUNT_H */