2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2002 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_COMMON_H__
21 #define __PREFS_COMMON_H__
29 #include "mainwindow.h"
30 #include "summaryview.h"
34 typedef struct _PrefsCommon PrefsCommon;
44 /* SEND_DIALOG_ACTIVE would be irrelevant */
50 NEXTUNREADMSGDIALOG_ALWAYS,
51 NEXTUNREADMSGDIALOG_ASSUME_YES,
52 NEXTUNREADMSGDIALOG_ASSUME_NO
53 } NextUnreadMsgDialogShow;
61 gboolean filter_on_inc;
63 gboolean scan_all_after_inc;
64 gboolean autochk_newmail;
66 gboolean chk_on_startup;
67 gboolean newmail_notify_auto;
68 gboolean newmail_notify_manu;
69 gchar *newmail_notify_cmd;
77 gchar *outgoing_charset;
84 gboolean linewrap_quote;
86 gboolean linewrap_at_send;
87 gboolean auto_exteditor;
88 gboolean reply_account_autosel;
89 gboolean default_reply_list;
90 gboolean forward_account_autosel;
91 gboolean reedit_account_autosel;
97 gboolean reply_with_quote;
102 gboolean forward_as_attachment;
103 gboolean redirect_keep_from;
104 gboolean smart_wrapping;
105 gboolean block_cursor;
109 gboolean enable_aspell;
114 gboolean check_while_typing;
115 gboolean use_alternate;
124 gboolean display_folder_unread;
125 gboolean display_img;
127 ToolbarStyle toolbar_style;
128 gboolean show_statusbar;
129 gboolean show_searchbar;
131 gboolean enable_thread;
132 gboolean enable_hscrollbar;
133 gboolean expand_thread;
134 gboolean bold_unread;
136 gboolean use_addr_book;
139 gint folderview_vscrollbar_policy;
145 gint important_score;
148 GSList *actions_list;
150 /* Summary columns visibility, position and size */
151 gboolean summary_col_visible[N_SUMMARY_COLS];
152 gint summary_col_pos[N_SUMMARY_COLS];
153 gint summary_col_size[N_SUMMARY_COLS];
158 gint folderview_width;
159 gint folderview_height;
160 gint folder_col_folder;
162 gint folder_col_unread;
163 gint folder_col_total;
165 gint summaryview_width;
166 gint summaryview_height;
171 gint mainview_height;
184 gboolean enable_color;
185 gint quote_level1_col;
186 gint quote_level2_col;
187 gint quote_level3_col;
191 gboolean recycle_quote_colors;
192 gboolean conv_mb_alnum;
193 gboolean display_header_pane;
194 gboolean display_header;
197 gboolean enable_smooth_scroll;
199 gboolean scroll_halfpage;
201 gchar *force_charset;
203 gboolean show_other_header;
204 GSList *disphdr_list;
207 gchar *mime_image_viewer;
208 gchar *mime_audio_player;
209 gchar *mime_open_cmd;
211 GList *mime_open_cmd_history;
215 gboolean auto_check_signatures;
216 gboolean gpg_signature_popup;
217 gboolean store_passphrase;
218 gint store_passphrase_timeout;
219 gboolean passphrase_grab;
220 gboolean gpg_warning;
221 #endif /* USE_GPGME */
226 gboolean emulate_emacs;
227 gboolean show_msg_with_cursor_key;
228 gboolean open_unread_on_enter;
229 gboolean mark_as_read_on_new_window;
230 gboolean open_inbox_on_inc;
231 gboolean immediate_exec;
232 RecvDialogMode recv_dialog_mode;
233 SendDialogMode send_dialog_mode;
234 gboolean close_recv_dialog;
235 gboolean no_recv_err_panel;
236 NextUnreadMsgDialogShow next_unread_msg_dialog;
237 gboolean add_address_by_click;
238 gchar *pixmap_theme_path;
243 gchar *ext_editor_cmd;
248 gboolean confirm_on_exit;
249 gboolean clean_on_exit;
250 gboolean ask_on_clean;
251 gboolean warn_queued_on_exit;
253 gboolean ssl_ask_unknown_valid;
256 gint cache_max_mem_usage;
257 gint cache_min_keep_time;
259 /* boolean for work offline
260 stored here for use in inc.c */
261 gboolean work_offline;
265 extern PrefsCommon prefs_common;
267 void prefs_common_init ();
268 void prefs_common_read_config (void);
269 void prefs_common_save_config (void);
270 void prefs_common_open (void);
272 #endif /* __PREFS_COMMON_H__ */