add common prefs option '/Interface/Open next message on deletion'
[claws.git] / src / prefs_common.h
index 2ac26d3a05642a0fea9051ce179c161a25baa66d..57e7a697e9b9e97ea44ccdc0e90ae3332ced3bda 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2002 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2003 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
@@ -39,6 +39,13 @@ typedef enum {
        RECV_DIALOG_NEVER
 } RecvDialogMode;
 
+typedef enum {
+       CTE_AUTO,
+       CTE_BASE64,
+       CTE_QUOTED_PRINTABLE,
+       CTE_8BIT
+} TransferEncodingMethod;
+
 typedef enum {
        SEND_DIALOG_ALWAYS,
        /* SEND_DIALOG_ACTIVE would be irrelevant */
@@ -67,7 +74,6 @@ struct _PrefsCommon
        gboolean newmail_notify_auto;
        gboolean newmail_notify_manu;
        gchar   *newmail_notify_cmd;
-       gint max_articles;
 
        /* Send */
        gboolean use_extsend;
@@ -75,10 +81,9 @@ struct _PrefsCommon
        gboolean savemsg;
        gboolean queue_msg;
        gchar *outgoing_charset;
+       TransferEncodingMethod encoding_method;
 
        /* Compose */
-       gboolean auto_sig;
-       gchar *sig_sep;
        gint undolevels;
        gint linewrap_len;
        gboolean linewrap_quote;
@@ -121,20 +126,25 @@ struct _PrefsCommon
        gchar *normalfont;
        gchar *boldfont;
        gchar *smallfont;
+
+       gboolean trans_hdr;
        gboolean display_folder_unread;
        gint ng_abbrev_len;
-       ToolbarStyle toolbar_style;
-       gboolean show_statusbar;
+
        gboolean show_searchbar;
-       gboolean trans_hdr;
-       gboolean enable_thread;
-       gboolean enable_hscrollbar;
-       gboolean expand_thread;
-       gboolean bold_unread;
        gboolean swap_from;
+       gboolean expand_thread;
        gboolean use_addr_book;
        gchar *date_format;
 
+       gboolean enable_hscrollbar;
+       gboolean bold_unread;
+       gboolean enable_thread;
+       gboolean thread_by_subject;
+
+       ToolbarStyle toolbar_style;
+       gboolean show_statusbar;
+
        gint folderview_vscrollbar_policy;
 
        /* Filtering */
@@ -176,6 +186,9 @@ struct _PrefsCommon
        gint msgwin_width;
        gint msgwin_height;
 
+       gint sourcewin_width;
+       gint sourcewin_height;
+
        gint compose_width;
        gint compose_height;
 
@@ -197,14 +210,13 @@ struct _PrefsCommon
        gint scroll_step;
        gboolean scroll_halfpage;
 
-       gboolean display_img;
-       gboolean resize_image;
-
        gchar *force_charset;
 
        gboolean show_other_header;
        GSList *disphdr_list;
 
+       gboolean attach_desc;
+
        /* MIME viewer */
        gchar *mime_image_viewer;
        gchar *mime_audio_player;
@@ -229,6 +241,7 @@ struct _PrefsCommon
        gboolean show_msg_with_cursor_key;
        gboolean open_unread_on_enter;
        gboolean mark_as_read_on_new_window;
+       gboolean open_on_delete;
        gboolean open_inbox_on_inc;
        gboolean immediate_exec;
        RecvDialogMode recv_dialog_mode;
@@ -251,9 +264,12 @@ struct _PrefsCommon
        gboolean clean_on_exit;
        gboolean ask_on_clean;
        gboolean warn_queued_on_exit;
-#ifdef USE_SSL
+#if 0
+#ifdef USE_OPENSSL
        gboolean ssl_ask_unknown_valid;
 #endif
+#endif
+
        /* Memory cache*/
        gint cache_max_mem_usage;
        gint cache_min_keep_time;
@@ -261,7 +277,9 @@ struct _PrefsCommon
        /* boolean for work offline 
           stored here for use in inc.c */
        gboolean work_offline;
-
+       
+       gint summary_quicksearch_type;
+       gint color_new;
 };
 
 extern PrefsCommon prefs_common;
@@ -270,5 +288,6 @@ void prefs_common_init              ();
 void prefs_common_read_config  (void);
 void prefs_common_save_config  (void);
 void prefs_common_open         (void);
+PrefsCommon *prefs_common_get  (void);
 
 #endif /* __PREFS_COMMON_H__ */