2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2003 Hiroyuki Yamamoto
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __PREFS_ACCOUNT_H__
21 #define __PREFS_ACCOUNT_H__
29 typedef struct _PrefsAccount PrefsAccount;
54 /* login and retrieve messages, as before */
56 /* send TOP to server and retrieve all available Headers */
58 /* send TOP to server and retrieve new Headers */
60 /* delete selected Headers on Server */
62 /* download + remove Mail from Server */
64 /* just login (pop before smtp) */
65 STYPE_POP_BEFORE_SMTP,
79 #endif /* USE_GPGME */
91 RecvProtocol protocol;
95 gboolean use_nntp_auth;
96 gboolean use_nntp_auth_onconnect;
101 gboolean use_mail_command;
102 gchar * mail_command;
109 #endif /* USE_OPENSSL */
111 /* Temporarily preserved password */
118 gboolean recv_at_getall;
119 gboolean sd_rmmail_on_download;
120 gboolean sd_filter_on_recv;
121 gboolean enable_size_limit;
123 gboolean filter_on_recv;
127 /* selective Download */
134 gboolean add_customhdr;
135 gboolean use_smtp_auth;
136 SMTPAuthType smtp_auth_type;
140 /* Temporarily preserved password */
141 gchar *tmp_smtp_pass;
143 gboolean pop_before_smtp;
144 gint pop_before_smtp_timeout;
145 time_t last_pop_login_time;
147 GSList *customhdr_list;
156 gboolean set_autobcc;
158 gboolean set_autoreplyto;
163 gboolean default_encrypt;
164 gboolean default_sign;
165 gboolean default_gnupg_mode;
166 SignKeyType sign_key;
168 #endif /* USE_GPGME */
171 gboolean set_smtpport;
173 gboolean set_popport;
175 gboolean set_imapport;
177 gboolean set_nntpport;
181 gboolean mark_crosspost_read;
184 /* Use this command to open a socket, rather than doing so
185 * directly. Good if you want to perhaps use a special socks
186 * tunnel command, or run IMAP-over-SSH. In this case the
187 * server, port etc are only for the user's own information
188 * and are not used. username and password are used to
189 * authenticate the account only if necessary, since some
190 * tunnels will implicitly authenticate by running e.g. imapd
191 * as a particular user. */
192 gboolean set_tunnelcmd;
197 gboolean set_sent_folder;
199 gboolean set_draft_folder;
201 gboolean set_trash_folder;
206 /* Unique account ID */
209 RemoteFolder *folder;
212 PrefsAccount *prefs_account_new (void);
214 void prefs_account_read_config (PrefsAccount *ac_prefs,
216 void prefs_account_save_config_all (GList *account_list);
218 void prefs_account_free (PrefsAccount *ac_prefs);
220 PrefsAccount *prefs_account_open (PrefsAccount *ac_prefs);
222 #endif /* __PREFS_ACCOUNT_H__ */