2012-04-01 [colin] 3.8.0cvs36
[claws.git] / src / compose.h
index 48c5f67390ee765773671ae4e5dd6f888c904adf..0c67bed6ccb35fb5635aee90b82164f59187de1b 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2009 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2011 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
@@ -28,7 +28,9 @@ typedef struct _AttachInfo    AttachInfo;
 
 #include "procmsg.h"
 #include "procmime.h"
+#ifndef USE_NEW_ADDRBOOK
 #include "addressbook.h"
+#endif
 #include "prefs_account.h"
 #include "undo.h"
 #include "toolbar.h"
@@ -43,6 +45,7 @@ typedef struct _AttachInfo    AttachInfo;
 #endif
 
 #define COMPOSE_CHECK_BEFORE_SEND_HOOKLIST "compose_check_before_send"
+#define COMPOSE_CREATED_HOOKLIST "compose_created"
 
 typedef enum
 {
@@ -51,7 +54,8 @@ typedef enum
        COMPOSE_BCC,
        COMPOSE_REPLYTO,
        COMPOSE_NEWSGROUPS,
-       COMPOSE_FOLLOWUPTO
+       COMPOSE_FOLLOWUPTO,
+       COMPOSE_INREPLYTO
 } ComposeEntryType;
 
 typedef enum
@@ -60,6 +64,7 @@ typedef enum
        COMPOSE_REPLY_WITH_QUOTE,
        COMPOSE_REPLY_WITHOUT_QUOTE,
        COMPOSE_REPLY_TO_SENDER,
+       COMPOSE_REPLY_TO_ADDRESS,
        COMPOSE_FOLLOWUP_AND_REPLY_TO,
        COMPOSE_REPLY_TO_SENDER_WITH_QUOTE,
        COMPOSE_REPLY_TO_SENDER_WITHOUT_QUOTE,
@@ -112,6 +117,7 @@ struct _Compose
        /* Header */
        GtkWidget *table_vbox;
        GtkWidget *table;
+       GtkWidget *account_combo;
        GtkWidget *subject_entry;
        GtkWidget *paned;
 
@@ -257,6 +263,7 @@ struct _AttachInfo
        EncodingType encoding;
        gchar *name;
        goffset size;
+       gchar *charset;
 };
 
 typedef enum
@@ -271,7 +278,7 @@ typedef enum
 /* attache_files will be locale encode */
 Compose *compose_new                   (PrefsAccount   *account,
                                         const gchar    *mailto,
-                                        GPtrArray      *attach_files);
+                                        GList          *attach_files);
 
 Compose *compose_new_with_folderitem   (PrefsAccount   *account,
                                         FolderItem     *item,
@@ -311,6 +318,9 @@ void compose_destroy_all                (void);
 gboolean compose_draft                 (gpointer data, guint action);
 void compose_toolbar_cb                        (gint           action, 
                                         gpointer       data);
+void compose_reply_to_address          (MessageView    *msgview,
+                                        MsgInfo        *msginfo,
+                                        const gchar    *address);
 void compose_reply_from_messageview    (MessageView    *msgview, 
                                         GSList         *msginfo_list, 
                                         guint           action);
@@ -334,4 +344,5 @@ void compose_close_toolbar          (Compose *compose);
 void compose_clear_exit_drafts         (void);
 void compose_reopen_exit_drafts                (void);
 void compose_attach_from_list (Compose *compose, GList *file_list, gboolean free_data);
+void compose_check_for_email_account(Compose *compose);
 #endif /* __COMPOSE_H__ */