2007-09-27 [colin] 3.0.1cvs35
[claws.git] / src / folder_item_prefs.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2007 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         gboolean sort_by_number;
34         gboolean sort_by_size;
35         gboolean sort_by_date;
36         gboolean sort_by_from;
37         gboolean sort_by_subject;
38         gboolean sort_by_score;
39
40         gboolean sort_descending;
41
42         gboolean enable_thread;
43
44         int enable_processing;
45         GSList * processing;
46
47         int newmailcheck;
48         int offlinesync;
49         int offlinesync_days;
50         int remove_old_bodies;
51
52         gboolean request_return_receipt;
53         gboolean enable_default_to;
54         gchar *default_to;
55         gboolean enable_default_reply_to;
56         gchar *default_reply_to;
57         gboolean enable_simplify_subject;
58         gchar *simplify_subject_regexp;
59         gboolean enable_folder_chmod;
60         gint folder_chmod;
61         gboolean enable_default_account;
62         gint default_account;
63 #if USE_ASPELL
64         gboolean enable_default_dictionary;
65         gchar *default_dictionary;
66         gboolean enable_default_alt_dictionary;
67         gchar *default_alt_dictionary;
68 #endif
69         gboolean save_copy_to_folder;
70         guint color;
71
72         gboolean compose_with_format;
73         gchar *compose_subject_format;
74         gchar *compose_body_format;
75         gboolean reply_with_format;
76         gchar *reply_quotemark;
77         gchar *reply_body_format;
78         gboolean forward_with_format;
79         gchar *forward_quotemark;
80         gchar *forward_body_format;
81 };
82
83 void folder_item_prefs_read_config(FolderItem * item);
84 void folder_item_prefs_save_config(FolderItem * item);
85 void folder_item_prefs_save_config_recursive(FolderItem * item);
86 FolderItemPrefs *folder_item_prefs_new(void);
87 void folder_item_prefs_free(FolderItemPrefs * prefs);
88 void folder_item_prefs_copy_prefs(FolderItem * src, FolderItem * dest);
89
90 #endif /* FOLDER_ITEM_PREFS_H */