/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2003 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2004 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
# include "config.h"
#endif
-#include <glib.h>
-
typedef struct _PrefsAccount PrefsAccount;
-#include "folder.h"
-#include "smtp.h"
-
-#ifdef USE_GPGME
-# include "rfc2015.h"
-#endif
-
typedef enum {
A_POP3,
A_APOP,
A_RPOP,
A_IMAP4,
A_NNTP,
- A_LOCAL
+ A_LOCAL,
+ A_NONE, /* SMTP only */
} RecvProtocol;
typedef enum {
SIG_DIRECT
} SigType;
+#include <glib.h>
-#if USE_GPGME
-typedef enum {
- SIGN_KEY_DEFAULT,
- SIGN_KEY_BY_FROM,
- SIGN_KEY_CUSTOM
-} SignKeyType;
-
-typedef enum {
- GNUPG_MODE_DETACH,
- GNUPG_MODE_INLINE
-} DefaultGnuPGMode;
-#endif /* USE_GPGME */
+#include "smtp.h"
+#include "folder.h"
struct _PrefsAccount
{
SSLType ssl_imap;
SSLType ssl_nntp;
SSLType ssl_smtp;
+ gboolean use_nonblocking_ssl;
#endif /* USE_OPENSSL */
/* Temporarily preserved password */
gboolean set_autoreplyto;
gchar *auto_replyto;
-#if USE_GPGME
/* Privacy */
- gboolean default_encrypt;
- gboolean default_sign;
- gboolean default_gnupg_mode;
- SignKeyType sign_key;
- gchar *sign_key_id;
-#endif /* USE_GPGME */
+ gchar *default_privacy_system;
+ gboolean default_encrypt;
+ gboolean default_sign;
/* Advanced */
gboolean set_smtpport;
/* Unique account ID */
gint account_id;
- RemoteFolder *folder;
+ Folder *folder;
};
PrefsAccount *prefs_account_new (void);
void prefs_account_read_config (PrefsAccount *ac_prefs,
const gchar *label);
-void prefs_account_save_config_all (GList *account_list);
+void prefs_account_write_config_all (GList *account_list);
void prefs_account_free (PrefsAccount *ac_prefs);