2007-12-06 [colin] 3.1.0cvs62
[claws.git] / src / prefs_account.h
index df32b877814dc1312a1c8d5d742d7f99b105155c..e8e793bd056d5cb551f147d7c537d0798e42597f 100644 (file)
@@ -4,7 +4,7 @@
  *
  * 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
+ * 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,
@@ -13,8 +13,8 @@
  * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * 
  */
 
 #ifndef PREFS_ACCOUNT_H
@@ -49,6 +49,8 @@ typedef enum {
 #include "folder.h"
 #include "gtk/prefswindow.h"
 
+/* Changes to this data structure might need to be reflected
+ * in account_clone() */
 struct _PrefsAccount
 {
        gchar *account_name;
@@ -85,13 +87,12 @@ struct _PrefsAccount
        gboolean use_apop_auth;
        gboolean rmmail;
        gint msg_leave_time;
-       gboolean getall;
        gboolean recv_at_getall;
        gboolean sd_rmmail_on_download;
-       gboolean sd_filter_on_recv;
        gboolean enable_size_limit;
        gint size_limit;
        gboolean filter_on_recv;
+       gboolean filterhook_on_recv;
        gchar *inbox;
        gchar *local_inbox;
        gint max_articles;
@@ -126,12 +127,19 @@ struct _PrefsAccount
        gchar    *auto_bcc;
        gboolean  set_autoreplyto;
        gchar    *auto_replyto;
-#ifdef USE_ASPELL
        gboolean  enable_default_dictionary;
        gchar    *default_dictionary;
        gboolean  enable_default_alt_dictionary;
        gchar    *default_alt_dictionary;
-#endif
+       gboolean  compose_with_format;
+       gchar    *compose_subject_format;
+       gchar    *compose_body_format;
+       gboolean  reply_with_format;
+       gchar    *reply_quotemark;
+       gchar    *reply_body_format;
+       gboolean  forward_with_format;
+       gchar    *forward_quotemark;
+       gchar    *forward_body_format;
 
        /* Privacy */
        gchar    *default_privacy_system;
@@ -155,6 +163,7 @@ struct _PrefsAccount
        gboolean  mark_crosspost_read;
        gint      crosspost_col;
 
+#ifndef G_OS_WIN32
        /* Use this command to open a socket, rather than doing so
         * directly.  Good if you want to perhaps use a special socks
         * tunnel command, or run IMAP-over-SSH.  In this case the
@@ -165,6 +174,7 @@ struct _PrefsAccount
         * as a particular user. */
        gboolean  set_tunnelcmd;
        gchar     *tunnelcmd;
+#endif
 
        gchar *imap_dir;
        gboolean imap_subsonly;
@@ -199,7 +209,7 @@ void prefs_account_write_config_all (GList          *account_list);
 
 void prefs_account_free                        (PrefsAccount   *ac_prefs);
 
-PrefsAccount *prefs_account_open       (PrefsAccount   *ac_prefs);
+PrefsAccount *prefs_account_open       (PrefsAccount   *ac_prefs, gboolean *dirty);
 
 const gchar *prefs_account_get_privacy_prefs(PrefsAccount *account, gchar *id);
 void prefs_account_set_privacy_prefs(PrefsAccount *account, gchar *id, gchar *new_value);