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;
47 } TransferEncodingMethod;
51 /* SEND_DIALOG_ACTIVE would be irrelevant */
57 NEXTUNREADMSGDIALOG_ALWAYS,
58 NEXTUNREADMSGDIALOG_ASSUME_YES,
59 NEXTUNREADMSGDIALOG_ASSUME_NO
60 } NextUnreadMsgDialogShow;
68 gboolean filter_on_inc;
70 gboolean scan_all_after_inc;
71 gboolean autochk_newmail;
73 gboolean chk_on_startup;
74 gboolean newmail_notify_auto;
75 gboolean newmail_notify_manu;
76 gchar *newmail_notify_cmd;
84 gchar *outgoing_charset;
85 TransferEncodingMethod encoding_method;
92 gboolean linewrap_quote;
94 gboolean linewrap_at_send;
95 gboolean auto_exteditor;
96 gboolean reply_account_autosel;
97 gboolean default_reply_list;
98 gboolean forward_account_autosel;
99 gboolean reedit_account_autosel;
102 gint autosave_length;
105 gboolean reply_with_quote;
110 gboolean forward_as_attachment;
111 gboolean redirect_keep_from;
112 gboolean smart_wrapping;
113 gboolean block_cursor;
117 gboolean enable_aspell;
122 gboolean check_while_typing;
123 gboolean use_alternate;
134 gboolean display_folder_unread;
137 gboolean show_searchbar;
139 gboolean expand_thread;
140 gboolean use_addr_book;
143 gboolean enable_hscrollbar;
144 gboolean bold_unread;
145 gboolean enable_thread;
146 gboolean thread_by_subject;
148 ToolbarStyle toolbar_style;
149 gboolean show_statusbar;
151 gint folderview_vscrollbar_policy;
157 gint important_score;
160 GSList *actions_list;
162 /* Summary columns visibility, position and size */
163 gboolean summary_col_visible[N_SUMMARY_COLS];
164 gint summary_col_pos[N_SUMMARY_COLS];
165 gint summary_col_size[N_SUMMARY_COLS];
170 gint folderview_width;
171 gint folderview_height;
172 gint folder_col_folder;
174 gint folder_col_unread;
175 gint folder_col_total;
177 gint summaryview_width;
178 gint summaryview_height;
183 gint mainview_height;
196 gboolean enable_color;
197 gint quote_level1_col;
198 gint quote_level2_col;
199 gint quote_level3_col;
203 gboolean recycle_quote_colors;
204 gboolean conv_mb_alnum;
205 gboolean display_header_pane;
206 gboolean display_header;
209 gboolean enable_smooth_scroll;
211 gboolean scroll_halfpage;
213 gboolean display_img;
214 gboolean resize_image;
216 gchar *force_charset;
218 gboolean show_other_header;
219 GSList *disphdr_list;
222 gchar *mime_image_viewer;
223 gchar *mime_audio_player;
224 gchar *mime_open_cmd;
226 GList *mime_open_cmd_history;
230 gboolean auto_check_signatures;
231 gboolean gpg_signature_popup;
232 gboolean store_passphrase;
233 gint store_passphrase_timeout;
234 gboolean passphrase_grab;
235 gboolean gpg_warning;
236 #endif /* USE_GPGME */
241 gboolean emulate_emacs;
242 gboolean show_msg_with_cursor_key;
243 gboolean open_unread_on_enter;
244 gboolean mark_as_read_on_new_window;
245 gboolean open_inbox_on_inc;
246 gboolean immediate_exec;
247 RecvDialogMode recv_dialog_mode;
248 SendDialogMode send_dialog_mode;
249 gboolean close_recv_dialog;
250 gboolean no_recv_err_panel;
251 NextUnreadMsgDialogShow next_unread_msg_dialog;
252 gboolean add_address_by_click;
253 gchar *pixmap_theme_path;
258 gchar *ext_editor_cmd;
263 gboolean confirm_on_exit;
264 gboolean clean_on_exit;
265 gboolean ask_on_clean;
266 gboolean warn_queued_on_exit;
269 gboolean ssl_ask_unknown_valid;
273 gint cache_max_mem_usage;
274 gint cache_min_keep_time;
276 /* boolean for work offline
277 stored here for use in inc.c */
278 gboolean work_offline;
280 gint summary_quicksearch_type;
284 extern PrefsCommon prefs_common;
286 void prefs_common_init ();
287 void prefs_common_read_config (void);
288 void prefs_common_save_config (void);
289 void prefs_common_open (void);
291 #endif /* __PREFS_COMMON_H__ */