Fix bug #3574: Template addressing
[claws.git] / src / folder_item_prefs.h
blob44e49985dd16a43c30be316abb277e54a8ba6c44
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 gchar *simplify_subject_regexp;
61 gboolean enable_folder_chmod;
62 gint folder_chmod;
63 gboolean enable_default_account;
64 gint default_account;
66 gboolean enable_default_dictionary;
67 gchar *default_dictionary;
68 gboolean enable_default_alt_dictionary;
69 gchar *default_alt_dictionary;
71 gboolean save_copy_to_folder;
72 guint color;
74 gboolean compose_with_format;
75 gchar *compose_override_from_format;
76 gchar *compose_subject_format;
77 gchar *compose_body_format;
78 gboolean reply_with_format;
79 gchar *reply_quotemark;
80 gchar *reply_override_from_format;
81 gchar *reply_body_format;
82 gboolean forward_with_format;
83 gchar *forward_quotemark;
84 gchar *forward_override_from_format;
85 gchar *forward_body_format;
88 void folder_item_prefs_read_config(FolderItem * item);
89 void folder_item_prefs_save_config(FolderItem * item);
90 void folder_item_prefs_save_config_recursive(FolderItem * item);
91 void folder_prefs_save_config_recursive(Folder *folder);
92 FolderItemPrefs *folder_item_prefs_new(void);
93 void folder_item_prefs_free(FolderItemPrefs * prefs);
94 void folder_item_prefs_copy_prefs(FolderItem * src, FolderItem * dest);
96 #endif /* FOLDER_ITEM_PREFS_H */