mail retrieval dialog can be enabled, disabled
[claws.git] / src / prefs_common.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2001 Hiroyuki Yamamoto
4  *
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.
9  *
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.
14  *
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.
18  */
19
20 #ifndef __PREFS_COMMON_H__
21 #define __PREFS_COMMON_H__
22
23 #ifdef HAVE_CONFIG_H
24 #  include "config.h"
25 #endif
26
27 #include <glib.h>
28
29 #include "mainwindow.h"
30 #include "codeconv.h"
31 #include "textview.h"
32
33 typedef struct _PrefsCommon     PrefsCommon;
34
35 typedef enum
36 {
37         RECVDIALOG_ALWAYS,
38         RECVDIALOG_WINDOW_ACTIVE,
39         RECVDIALOG_NEVER
40 } RecvDialogShow;
41
42 struct _PrefsCommon
43 {
44         /* Receive */
45         gboolean use_extinc;
46         gchar *extinc_path;
47         gboolean inc_local;
48         gboolean filter_on_inc;
49         gchar *spool_path;
50         gboolean autochk_newmail;
51         gint autochk_itv;
52         gboolean chk_on_startup;
53         gboolean noerrorpanel;
54         gint max_articles;
55
56         /* Send */
57         gboolean use_extsend;
58         gchar *extsend_path;
59         gboolean savemsg;
60         gboolean queue_msg;
61         gchar *outgoing_charset;
62
63         /* Compose */
64         gboolean reply_with_quote;
65         gchar *quotemark;
66         gchar *quotefmt;
67         gboolean auto_sig;
68         gchar *sig_sep;
69         gint linewrap_len;
70         gboolean linewrap_quote;
71         gboolean linewrap_at_send;
72         gboolean show_ruler;
73         gchar *fw_quotemark;
74         gchar *fw_quotefmt;
75         gboolean forward_as_attachment;
76         gboolean reply_account_autoselect;
77
78         /* Display */
79         gchar *widgetfont;
80         gchar *textfont;
81         gchar *smallfont;
82         gchar *boldfont;
83         gchar *normalfont;
84         gboolean display_folder_unread;
85         ToolbarStyle toolbar_style;
86         gboolean show_statusbar;
87         gboolean trans_hdr;
88         /* gboolean enable_thread; */
89         gboolean enable_hscrollbar;
90         gboolean swap_from;
91         gboolean use_addr_book;
92         gchar *date_format;
93
94         /* Filtering */
95         GSList *fltlist;
96
97         gint kill_score;
98         gint important_score;
99
100         gboolean show_mark;
101         gboolean show_unread;
102         gboolean show_mime;
103         gboolean show_number;
104         gboolean show_score;
105         gboolean show_size;
106         gboolean show_date;
107         gboolean show_from;
108         gboolean show_subject;
109
110         /* Widget size */
111         gint folderview_x;
112         gint folderview_y;
113         gint folderview_width;
114         gint folderview_height;
115         gint folder_col_folder;
116         gint folder_col_new;
117         gint folder_col_unread;
118         gint folder_col_total;
119
120         gint summaryview_width;
121         gint summaryview_height;
122         gint summary_col_mark;
123         gint summary_col_unread;
124         gint summary_col_mime;
125         gint summary_col_number;
126         gint summary_col_size;
127         gint summary_col_date;
128         gint summary_col_from;
129         gint summary_col_subject;
130         gint summary_col_score;
131
132         gint mainview_x;
133         gint mainview_y;
134         gint mainview_width;
135         gint mainview_height;
136         gint mainwin_x;
137         gint mainwin_y;
138         gint mainwin_width;
139         gint mainwin_height;
140
141         gint msgwin_width;
142         gint msgwin_height;
143
144         gint compose_width;
145         gint compose_height;
146
147         /* Message */
148         gboolean enable_color;
149         gint quote_level1_col;
150         gint quote_level2_col;
151         gint quote_level3_col;
152         gint uri_col;
153         gushort sig_col;
154         gboolean recycle_quote_colors;
155         gboolean conv_mb_alnum;
156         gboolean display_header_pane;
157         gboolean display_header;
158         gboolean head_space;
159         gint line_space;
160         gboolean enable_smooth_scroll;
161         gint scroll_step;
162         gboolean scroll_halfpage;
163
164         gchar *force_charset;
165
166         gboolean show_other_header;
167         GSList *disphdr_list;
168
169         /* MIME viewer */
170         gchar *mime_image_viewer;
171         gchar *mime_audio_player;
172
173         /* Privacy */
174         gboolean default_encrypt;
175         gboolean default_sign;
176         gboolean auto_check_signatures;
177         gboolean gpg_signature_popup;
178         gboolean passphrase_grab;
179         gchar *default_signkey;
180         gboolean gpg_warning;
181
182         /* Interface */
183         gboolean sep_folder;
184         gboolean sep_msg;
185         gboolean emulate_emacs;
186         gboolean open_unread_on_enter;
187         gboolean open_inbox_on_inc;
188         gboolean immediate_exec;
189         gboolean add_address_by_click;
190         RecvDialogShow receive_dialog;
191
192         gboolean confirm_on_exit;
193         gboolean clean_on_exit;
194         gboolean ask_on_clean;
195         gboolean warn_queued_on_exit;
196         gboolean return_receipt;
197
198         /* Other */
199         gchar *uri_cmd;
200         gchar *print_cmd;
201         gchar *ext_editor_cmd;
202 };
203
204 extern PrefsCommon prefs_common;
205
206 void prefs_common_read_config   (void);
207 void prefs_common_save_config   (void);
208 void prefs_common_open          (void);
209
210 void prefs_summary_display_item_set     (void);
211
212 #endif /* __PREFS_COMMON_H__ */