show recipient on 'from' for all accounts
[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 struct _PrefsCommon
36 {
37         /* Receive */
38         gboolean use_extinc;
39         gchar *extinc_path;
40         gboolean inc_local;
41         gboolean filter_on_inc;
42         gchar *spool_path;
43         gboolean autochk_newmail;
44         gint autochk_itv;
45         gboolean chk_on_startup;
46         gint max_articles;
47
48         /* Send */
49         gboolean use_extsend;
50         gchar *extsend_path;
51         gboolean savemsg;
52         gboolean queue_msg;
53         gchar *outgoing_charset;
54
55         /* Compose */
56         gboolean reply_with_quote;
57         gchar *quotemark;
58         gchar *quotefmt;
59         gboolean auto_sig;
60         gchar *sig_sep;
61         gint linewrap_len;
62         gboolean linewrap_quote;
63         gboolean linewrap_at_send;
64         gboolean show_ruler;
65         gchar *fw_quotemark;
66         gchar *fw_quotefmt;
67         gboolean forward_as_attachment;
68         gboolean reply_account_autoselect;
69
70         /* Display */
71         gchar *widgetfont;
72         gchar *textfont;
73         gchar *smallfont;
74         gchar *boldfont;
75         gchar *normalfont;
76         gboolean display_folder_unread;
77         ToolbarStyle toolbar_style;
78         gboolean show_statusbar;
79         gboolean trans_hdr;
80         /* gboolean enable_thread; */
81         gboolean enable_hscrollbar;
82         gboolean swap_from;
83         gboolean use_addr_book;
84         gchar *date_format;
85
86         /* Filtering */
87         GSList *fltlist;
88
89         gint kill_score;
90         gint important_score;
91
92         gboolean show_mark;
93         gboolean show_unread;
94         gboolean show_mime;
95         gboolean show_number;
96         gboolean show_score;
97         gboolean show_size;
98         gboolean show_date;
99         gboolean show_from;
100         gboolean show_subject;
101
102         /* Widget size */
103         gint folderview_x;
104         gint folderview_y;
105         gint folderview_width;
106         gint folderview_height;
107         gint folder_col_folder;
108         gint folder_col_new;
109         gint folder_col_unread;
110         gint folder_col_total;
111
112         gint summaryview_width;
113         gint summaryview_height;
114         gint summary_col_mark;
115         gint summary_col_unread;
116         gint summary_col_mime;
117         gint summary_col_number;
118         gint summary_col_size;
119         gint summary_col_date;
120         gint summary_col_from;
121         gint summary_col_subject;
122         gint summary_col_score;
123
124         gint mainview_x;
125         gint mainview_y;
126         gint mainview_width;
127         gint mainview_height;
128         gint mainwin_x;
129         gint mainwin_y;
130         gint mainwin_width;
131         gint mainwin_height;
132
133         gint msgwin_width;
134         gint msgwin_height;
135
136         gint compose_width;
137         gint compose_height;
138
139         /* Message */
140         gboolean enable_color;
141         gint quote_level1_col;
142         gint quote_level2_col;
143         gint quote_level3_col;
144         gint uri_col;
145         gushort sig_col;
146         gboolean recycle_quote_colors;
147         gboolean conv_mb_alnum;
148         gboolean display_header_pane;
149         gboolean display_header;
150         gboolean head_space;
151         gint line_space;
152         gboolean enable_smooth_scroll;
153         gint scroll_step;
154         gboolean scroll_halfpage;
155
156         gchar *force_charset;
157
158         gboolean show_other_header;
159         GSList *disphdr_list;
160
161         /* MIME viewer */
162         gchar *mime_image_viewer;
163         gchar *mime_audio_player;
164
165         /* Privacy */
166         gboolean default_encrypt;
167         gboolean default_sign;
168         gboolean auto_check_signatures;
169         gboolean gpg_signature_popup;
170         gboolean passphrase_grab;
171         gchar *default_signkey;
172         gboolean gpg_warning;
173
174         /* Interface */
175         gboolean sep_folder;
176         gboolean sep_msg;
177         gboolean emulate_emacs;
178         gboolean open_unread_on_enter;
179         gboolean open_inbox_on_inc;
180         gboolean immediate_exec;
181         gboolean add_address_by_click;
182
183         gboolean confirm_on_exit;
184         gboolean clean_on_exit;
185         gboolean ask_on_clean;
186         gboolean warn_queued_on_exit;
187         gboolean return_receipt;
188
189         /* Other */
190         gchar *uri_cmd;
191         gchar *print_cmd;
192         gchar *ext_editor_cmd;
193 };
194
195 extern PrefsCommon prefs_common;
196
197 void prefs_common_read_config   (void);
198 void prefs_common_save_config   (void);
199 void prefs_common_open          (void);
200
201 void prefs_summary_display_item_set     (void);
202
203 #endif /* __PREFS_COMMON_H__ */