/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999,2000 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2001 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
#ifndef __PREFS_ACCOUNT_H__
#define __PREFS_ACCOUNT_H__
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <glib.h>
typedef struct _PrefsAccount PrefsAccount;
A_LOCAL
} RecvProtocol;
+#if USE_GPGME
+typedef enum {
+ SIGN_KEY_DEFAULT,
+ SIGN_KEY_BY_FROM,
+ SIGN_KEY_CUSTOM
+} 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;
gchar *userid;
gchar *passwd;
+ gchar * local_mbox;
+ 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;
+ gchar *tmp_smtp_passwd;
/* Receive */
gboolean rmmail;
gboolean recv_at_getall;
gboolean filter_on_recv;
+ gchar *imap_dir;
+
/* Send */
gboolean add_date;
gboolean gen_msgid;
gboolean set_autoreplyto;
gchar *auto_replyto;
gboolean use_smtp_auth;
+ gchar *smtp_userid;
+ gchar *smtp_passwd;
gboolean pop_before_smtp;
+ GSList *customhdr_list;
+
/* Compose */
gchar *sig_path;
+#if USE_GPGME
+ /* Privacy */
+ SignKeyType sign_key;
+ gchar *sign_key_id;
+#endif /* USE_GPGME */
+
/* Advanced */
gboolean set_smtpport;
gushort smtpport;
gboolean set_popport;
gushort popport;
+ gboolean set_imapport;
+ gushort imapport;
gboolean set_nntpport;
gushort nntpport;
gboolean set_domain;