add 'Default From:' to folder prefs
[claws.git] / src / folder_item_prefs.h
index f07f2596d458c9d838a8c0c181d3a29cca2e50bd..be183da6bc769084af4f8855ba260cd1fab23225 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 typedef struct _FolderItemPrefs FolderItemPrefs;
 
 #include "folder.h"
+typedef enum {
+       HTML_PROMOTE_DEFAULT=0,
+       HTML_PROMOTE_NEVER,
+       HTML_PROMOTE_ALWAYS
+} HTMLPromoteType;
+typedef enum {
+       SIGN_OR_ENCRYPT_DEFAULT=0,
+       SIGN_OR_ENCRYPT_NEVER,
+       SIGN_OR_ENCRYPT_ALWAYS
+} SignOrEncryptType;
 
 struct _FolderItemPrefs {
        gchar * directory;
 
-        int enable_processing; /* at start-up */
-        int enable_processing_when_opening;
+       gint config_version;
+
+       int enable_processing; /* at start-up */
+       int enable_processing_when_opening;
        GSList * processing;
 
        int newmailcheck;
        int offlinesync;
        int offlinesync_days;
        int remove_old_bodies;
+       HTMLPromoteType promote_html_part;
+       gboolean skip_on_goto_unread_or_new;
 
        gboolean request_return_receipt;
+       gboolean enable_default_from;
+       gchar *default_from;
        gboolean enable_default_to;
        gchar *default_to;
        gboolean enable_default_reply_to;
        gchar *default_reply_to;
+       gboolean enable_default_cc;
+       gchar *default_cc;
+       gboolean enable_default_bcc;
+       gchar *default_bcc;
+       gboolean enable_default_replyto;
+       gchar *default_replyto;
        gboolean enable_simplify_subject;
        gchar *simplify_subject_regexp;
        gboolean enable_folder_chmod;
        gint folder_chmod;
        gboolean enable_default_account;
        gint default_account;
-#if USE_ASPELL
+
        gboolean enable_default_dictionary;
        gchar *default_dictionary;
        gboolean enable_default_alt_dictionary;
        gchar *default_alt_dictionary;
-#endif
+       SignOrEncryptType always_sign;
+       SignOrEncryptType always_encrypt;
        gboolean save_copy_to_folder;
-       guint color;
+       gulong color;
 
        gboolean compose_with_format;
        gchar *compose_override_from_format;
@@ -76,6 +99,7 @@ struct _FolderItemPrefs {
 void folder_item_prefs_read_config(FolderItem * item);
 void folder_item_prefs_save_config(FolderItem * item);
 void folder_item_prefs_save_config_recursive(FolderItem * item);
+void folder_prefs_save_config_recursive(Folder *folder);
 FolderItemPrefs *folder_item_prefs_new(void);
 void folder_item_prefs_free(FolderItemPrefs * prefs);
 void folder_item_prefs_copy_prefs(FolderItem * src, FolderItem * dest);