2001-07-24 22:30:26 +02:00
|
|
|
/*
|
|
|
|
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
|
|
|
* Copyright (C) 1999-2001 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
|
|
|
|
* the Free Software Foundation; either version 2 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, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2001-05-06 06:27:28 +02:00
|
|
|
#ifndef PREFS_FOLDER_ITEM_H
|
|
|
|
|
|
|
|
#define PREFS_FOLDER_ITEM_H
|
|
|
|
|
|
|
|
#include "folder.h"
|
|
|
|
#include <glib.h>
|
2001-12-29 06:29:09 +01:00
|
|
|
#include <sys/types.h>
|
2001-05-06 06:27:28 +02:00
|
|
|
|
|
|
|
struct _PrefsFolderItem {
|
|
|
|
gchar * directory;
|
|
|
|
|
|
|
|
gboolean sort_by_number;
|
|
|
|
gboolean sort_by_size;
|
|
|
|
gboolean sort_by_date;
|
|
|
|
gboolean sort_by_from;
|
|
|
|
gboolean sort_by_subject;
|
|
|
|
gboolean sort_by_score;
|
|
|
|
|
|
|
|
gboolean sort_descending;
|
|
|
|
|
2001-05-08 16:25:21 +02:00
|
|
|
gboolean enable_thread;
|
|
|
|
|
2001-06-01 13:06:33 +02:00
|
|
|
gint kill_score;
|
|
|
|
gint important_score;
|
|
|
|
|
2001-05-06 06:27:28 +02:00
|
|
|
GSList * scoring;
|
2001-06-01 13:06:33 +02:00
|
|
|
GSList * processing;
|
2001-07-24 22:30:26 +02:00
|
|
|
|
|
|
|
gboolean request_return_receipt;
|
|
|
|
gboolean enable_default_to;
|
|
|
|
gchar *default_to;
|
2002-09-29 18:08:20 +02:00
|
|
|
gboolean enable_default_reply_to;
|
|
|
|
gchar *default_reply_to;
|
2001-12-23 15:30:06 +01:00
|
|
|
gboolean enable_simplify_subject;
|
|
|
|
gchar *simplify_subject_regexp;
|
2001-07-30 07:49:36 +02:00
|
|
|
gboolean enable_folder_chmod;
|
|
|
|
gint folder_chmod;
|
2001-10-15 00:24:42 +02:00
|
|
|
gboolean enable_default_account;
|
|
|
|
gint default_account;
|
2001-12-21 14:20:11 +01:00
|
|
|
gboolean save_copy_to_folder;
|
2002-08-20 07:56:32 +02:00
|
|
|
guint color;
|
2001-05-06 06:27:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct _PrefsFolderItem PrefsFolderItem;
|
|
|
|
|
2001-12-23 15:30:06 +01:00
|
|
|
/* CLAWS: due a messed up circular header references using
|
|
|
|
* void *. but this is *REALLY* a folderview */
|
|
|
|
void prefs_folder_item_create (void *folderview, FolderItem *item);
|
|
|
|
|
2001-05-06 06:27:28 +02:00
|
|
|
void prefs_folder_item_read_config(FolderItem * item);
|
|
|
|
void prefs_folder_item_save_config(FolderItem * item);
|
|
|
|
void prefs_folder_item_set_config(FolderItem * item,
|
|
|
|
int sort_type, gint sort_mode);
|
|
|
|
PrefsFolderItem * prefs_folder_item_new(void);
|
|
|
|
void prefs_folder_item_free(PrefsFolderItem * prefs);
|
2001-05-08 16:25:21 +02:00
|
|
|
gint prefs_folder_item_get_sort_type(FolderItem * item);
|
|
|
|
gint prefs_folder_item_get_sort_mode(FolderItem * item);
|
2001-05-06 06:27:28 +02:00
|
|
|
|
|
|
|
#endif
|