0.9.6claws85
[claws.git] / src / folder_item_prefs.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 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         gint kill_score;
45         gint important_score;
46
47         int enable_processing;
48         GSList * scoring;
49         GSList * processing;
50
51         gboolean request_return_receipt;
52         gboolean enable_default_to;
53         gchar *default_to;
54         gboolean enable_default_reply_to;
55         gchar *default_reply_to;
56         gboolean enable_simplify_subject;
57         gchar *simplify_subject_regexp;
58         gboolean enable_folder_chmod;
59         gint folder_chmod;
60         gboolean enable_default_account;
61         gint default_account;
62 #if USE_ASPELL
63         gboolean enable_default_dictionary;
64         gchar *default_dictionary;
65 #endif
66         gboolean save_copy_to_folder;
67         guint color;
68 };
69
70 void folder_item_prefs_read_config(FolderItem * item);
71 void folder_item_prefs_save_config(FolderItem * item);
72 void folder_item_prefs_set_config(FolderItem * item,
73                                   int sort_type, gint sort_mode);
74 FolderItemPrefs *folder_item_prefs_new(void);
75 void folder_item_prefs_free(FolderItemPrefs * prefs);
76 gint folder_item_prefs_get_sort_type(FolderItem * item);
77 gint folder_item_prefs_get_sort_mode(FolderItem * item);
78 void folder_item_prefs_copy_prefs(FolderItem * src, FolderItem * dest);
79
80 #endif /* FOLDER_ITEM_PREFS_H */