folder_item_prefs.h (2638B)
1 /* 2 * Claws Mail -- a GTK based, lightweight, and fast e-mail client 3 * Copyright (C) 1999-2021 the Claws Mail team and 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 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 typedef enum { 30 HTML_RENDER_DEFAULT=0, 31 HTML_RENDER_NEVER, 32 HTML_RENDER_ALWAYS 33 } HTMLRenderType; 34 35 typedef enum { 36 HTML_PROMOTE_DEFAULT=0, 37 HTML_PROMOTE_NEVER, 38 HTML_PROMOTE_ALWAYS 39 } HTMLPromoteType; 40 typedef enum { 41 SIGN_OR_ENCRYPT_DEFAULT=0, 42 SIGN_OR_ENCRYPT_NEVER, 43 SIGN_OR_ENCRYPT_ALWAYS 44 } SignOrEncryptType; 45 46 struct _FolderItemPrefs { 47 gchar * directory; 48 49 gint config_version; 50 51 int enable_processing; /* at start-up */ 52 int enable_processing_when_opening; 53 GSList * processing; 54 55 int newmailcheck; 56 int offlinesync; 57 int offlinesync_days; 58 int remove_old_bodies; 59 HTMLRenderType render_html; 60 gboolean skip_on_goto_unread_or_new; 61 62 gboolean enable_default_from; 63 gchar *default_from; 64 gboolean enable_default_to; 65 gchar *default_to; 66 gboolean enable_default_reply_to; 67 gchar *default_reply_to; 68 gboolean enable_default_cc; 69 gchar *default_cc; 70 gboolean enable_default_bcc; 71 gchar *default_bcc; 72 gboolean enable_default_replyto; 73 gchar *default_replyto; 74 gboolean enable_simplify_subject; 75 gchar *simplify_subject_regexp; 76 gboolean enable_folder_chmod; 77 gint folder_chmod; 78 gboolean enable_default_account; 79 gint default_account; 80 81 SignOrEncryptType always_sign; 82 SignOrEncryptType always_encrypt; 83 gboolean save_copy_to_folder; 84 }; 85 86 void folder_item_prefs_read_config(FolderItem * item); 87 void folder_item_prefs_save_config(FolderItem * item); 88 void folder_item_prefs_save_config_recursive(FolderItem * item); 89 void folder_prefs_save_config_recursive(Folder *folder); 90 FolderItemPrefs *folder_item_prefs_new(void); 91 void folder_item_prefs_free(FolderItemPrefs * prefs); 92 void folder_item_prefs_copy_prefs(FolderItem * src, FolderItem * dest); 93 94 #endif /* FOLDER_ITEM_PREFS_H */