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
24 #include <sys/types.h>
26 typedef struct _FolderItemPrefs FolderItemPrefs
;
30 HTML_PROMOTE_DEFAULT
=0,
35 struct _FolderItemPrefs
{
38 int enable_processing
; /* at start-up */
39 int enable_processing_when_opening
;
45 int remove_old_bodies
;
46 HTMLPromoteType promote_html_part
;
48 gboolean request_return_receipt
;
49 gboolean enable_default_to
;
51 gboolean enable_default_reply_to
;
52 gchar
*default_reply_to
;
53 gboolean enable_default_cc
;
55 gboolean enable_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
;
63 gboolean enable_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
;
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 */