claws-mail/src/folder_item_prefs.h
Colin Leroy 71662e37db 2012-10-31 [colin] 3.8.1cvs109
* src/folder_item_prefs.c
	* src/folder_item_prefs.h
	* src/messageview.c
	* src/prefs_folder_item.c
		Implement feature from bug #2569,
		"select html part on folder specific properties"
		Patch based on Andrej's patch.
2012-10-31 10:25:17 +00:00

98 lines
2.8 KiB
C

/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
* Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
*
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef FOLDER_ITEM_PREFS_H
#define FOLDER_ITEM_PREFS_H
#include <glib.h>
#include <sys/types.h>
typedef struct _FolderItemPrefs FolderItemPrefs;
#include "folder.h"
typedef enum {
HTML_PROMOTE_DEFAULT=0,
HTML_PROMOTE_NEVER,
HTML_PROMOTE_ALWAYS
} HTMLPromoteType;
struct _FolderItemPrefs {
gchar * directory;
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 request_return_receipt;
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;
#ifndef G_OS_WIN32
gchar *simplify_subject_regexp;
#endif
gboolean enable_folder_chmod;
gint folder_chmod;
gboolean enable_default_account;
gint default_account;
gboolean enable_default_dictionary;
gchar *default_dictionary;
gboolean enable_default_alt_dictionary;
gchar *default_alt_dictionary;
gboolean save_copy_to_folder;
guint color;
gboolean compose_with_format;
gchar *compose_override_from_format;
gchar *compose_subject_format;
gchar *compose_body_format;
gboolean reply_with_format;
gchar *reply_quotemark;
gchar *reply_override_from_format;
gchar *reply_body_format;
gboolean forward_with_format;
gchar *forward_quotemark;
gchar *forward_override_from_format;
gchar *forward_body_format;
};
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);
#endif /* FOLDER_ITEM_PREFS_H */