5b69e45e02517961dbf65a9c03f189aa8b776ae8
[claws.git] / src / folder_item_prefs.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2009 Hiroyuki Yamamoto and the Claws Mail team
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 3 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, see <http://www.gnu.org/licenses/>.
17  * 
18  */
19
20 #ifndef FOLDER_ITEM_PREFS_H
21 #define FOLDER_ITEM_PREFS_H
22
23 #include <glib.h>
24 #include <sys/types.h>
25
26 typedef struct _FolderItemPrefs FolderItemPrefs;
27
28 #include "folder.h"
29
30 struct _FolderItemPrefs {
31         gchar * directory;
32
33         int enable_processing; /* at start-up */
34         int enable_processing_when_opening;
35         GSList * processing;
36
37         int newmailcheck;
38         int offlinesync;
39         int offlinesync_days;
40         int remove_old_bodies;
41
42         gboolean request_return_receipt;
43         gboolean enable_default_to;
44         gchar *default_to;
45         gboolean enable_default_reply_to;
46         gchar *default_reply_to;
47         gboolean enable_simplify_subject;
48 #ifndef G_OS_WIN32
49         gchar *simplify_subject_regexp;
50 #endif
51         gboolean enable_folder_chmod;
52         gint folder_chmod;
53         gboolean enable_default_account;
54         gint default_account;
55
56         gboolean enable_default_dictionary;
57         gchar *default_dictionary;
58         gboolean enable_default_alt_dictionary;
59         gchar *default_alt_dictionary;
60
61         gboolean save_copy_to_folder;
62         guint color;
63
64         gboolean compose_with_format;
65         gchar *compose_override_from_format;
66         gchar *compose_subject_format;
67         gchar *compose_body_format;
68         gboolean reply_with_format;
69         gchar *reply_quotemark;
70         gchar *reply_override_from_format;
71         gchar *reply_body_format;
72         gboolean forward_with_format;
73         gchar *forward_quotemark;
74         gchar *forward_override_from_format;
75         gchar *forward_body_format;
76 };
77
78 void folder_item_prefs_read_config(FolderItem * item);
79 void folder_item_prefs_save_config(FolderItem * item);
80 void folder_item_prefs_save_config_recursive(FolderItem * item);
81 FolderItemPrefs *folder_item_prefs_new(void);
82 void folder_item_prefs_free(FolderItemPrefs * prefs);
83 void folder_item_prefs_copy_prefs(FolderItem * src, FolderItem * dest);
84
85 #endif /* FOLDER_ITEM_PREFS_H */