2010-02-08 [pawel] 3.7.5cvs8
[claws.git] / src / compose.h
index 7b1cdc0a07cea5a90a1cca6e64655c64ff6b49cc..da0e4bfb9db8b077b616faf01f322497eedc4f32 100644 (file)
@@ -43,6 +43,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 +52,8 @@ typedef enum
        COMPOSE_BCC,
        COMPOSE_REPLYTO,
        COMPOSE_NEWSGROUPS,
-       COMPOSE_FOLLOWUPTO
+       COMPOSE_FOLLOWUPTO,
+       COMPOSE_INREPLYTO
 } ComposeEntryType;
 
 typedef enum
@@ -77,6 +79,15 @@ typedef enum
        COMPOSE_REEDIT
 } ComposeMode;
 
+typedef enum {
+       PREF_ACCOUNT,
+       PREF_FOLDER,
+       PREF_TEMPLATE,
+       PREF_ML,
+       PREF_MAILTO,
+       PREF_NONE
+} ComposePrefType;
+
 typedef struct {
        guint headernum;
        Compose *compose;
@@ -84,6 +95,7 @@ typedef struct {
        GtkWidget *entry;
        GtkWidget *button;
        GtkWidget *hbox;
+       ComposePrefType type;
 } ComposeHeaderEntry;
 
 struct _Compose
@@ -146,6 +158,8 @@ struct _Compose
        guint      header_nextrow;
        ComposeHeaderEntry *header_last;
 
+       GHashTable *email_hashtable;
+
        gchar   *replyto;
        gchar   *cc;
        gchar   *bcc;
@@ -285,7 +299,8 @@ GList *compose_get_compose_list             (void);
 
 void compose_entry_append              (Compose          *compose,
                                         const gchar      *address,
-                                        ComposeEntryType  type);
+                                        ComposeEntryType  type,
+                                        ComposePrefType   pref_type);
 
 
 gint compose_send                      (Compose          *compose);