separate username/password for SMTP Auth
[claws.git] / src / prefs_account.h
index f8c6a0dd626cb3c06c72c0234c0989136ea026a2..341174b811a00c4da9a0cb0f98289c4884524ace 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * 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;
@@ -35,6 +39,22 @@ typedef enum {
        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;
@@ -54,8 +74,21 @@ struct _PrefsAccount
        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;
@@ -63,6 +96,8 @@ struct _PrefsAccount
        gboolean recv_at_getall;
        gboolean filter_on_recv;
 
+       gchar *imap_dir;
+
        /* Send */
        gboolean  add_date;
        gboolean  gen_msgid;
@@ -74,16 +109,28 @@ struct _PrefsAccount
        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;