add user specified stylesheet option
[claws.git] / src / folder_item_prefs.h
blob12846ba8495c075a2a8e827f6283fd3fbb648817
1 /*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
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 3 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, see <http://www.gnu.org/licenses/>.
20 #ifndef FOLDER_ITEM_PREFS_H
21 #define FOLDER_ITEM_PREFS_H
23 #include <glib.h>
24 #include <sys/types.h>
26 typedef struct _FolderItemPrefs FolderItemPrefs;
28 #include "folder.h"
29 typedef enum {
30 HTML_PROMOTE_DEFAULT=0,
31 HTML_PROMOTE_NEVER,
32 HTML_PROMOTE_ALWAYS
33 } HTMLPromoteType;
35 struct _FolderItemPrefs {
36 gchar * directory;
38 int enable_processing; /* at start-up */
39 int enable_processing_when_opening;
40 GSList * processing;
42 int newmailcheck;
43 int offlinesync;
44 int offlinesync_days;
45 int remove_old_bodies;
46 HTMLPromoteType promote_html_part;
48 gboolean request_return_receipt;
49 gboolean enable_default_to;
50 gchar *default_to;
51 gboolean enable_default_reply_to;
52 gchar *default_reply_to;
53 gboolean enable_default_cc;
54 gchar *default_cc;
55 gboolean enable_default_bcc;
56 gchar *default_bcc;
57 gboolean enable_default_replyto;
58 gchar *default_replyto;
59 gboolean enable_simplify_subject;
60 #ifndef G_OS_WIN32
61 gchar *simplify_subject_regexp;
62 #endif
63 gboolean enable_folder_chmod;
64 gint folder_chmod;
65 gboolean enable_default_account;
66 gint default_account;
68 gboolean enable_default_dictionary;
69 gchar *default_dictionary;
70 gboolean enable_default_alt_dictionary;
71 gchar *default_alt_dictionary;
73 gboolean save_copy_to_folder;
74 guint color;
76 gboolean compose_with_format;
77 gchar *compose_override_from_format;
78 gchar *compose_subject_format;
79 gchar *compose_body_format;
80 gboolean reply_with_format;
81 gchar *reply_quotemark;
82 gchar *reply_override_from_format;
83 gchar *reply_body_format;
84 gboolean forward_with_format;
85 gchar *forward_quotemark;
86 gchar *forward_override_from_format;
87 gchar *forward_body_format;
90 void folder_item_prefs_read_config(FolderItem * item);
91 void folder_item_prefs_save_config(FolderItem * item);
92 void folder_item_prefs_save_config_recursive(FolderItem * item);
93 void folder_prefs_save_config_recursive(Folder *folder);
94 FolderItemPrefs *folder_item_prefs_new(void);
95 void folder_item_prefs_free(FolderItemPrefs * prefs);
96 void folder_item_prefs_copy_prefs(FolderItem * src, FolderItem * dest);
98 #endif /* FOLDER_ITEM_PREFS_H */