/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2009 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
#endif
#define COMPOSE_CHECK_BEFORE_SEND_HOOKLIST "compose_check_before_send"
+#define COMPOSE_CREATED_HOOKLIST "compose_created"
typedef enum
{
COMPOSE_BCC,
COMPOSE_REPLYTO,
COMPOSE_NEWSGROUPS,
- COMPOSE_FOLLOWUPTO
+ COMPOSE_FOLLOWUPTO,
+ COMPOSE_INREPLYTO
} ComposeEntryType;
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;
GtkWidget *combo;
GtkWidget *entry;
+ GtkWidget *button;
+ GtkWidget *hbox;
+ ComposePrefType type;
} ComposeHeaderEntry;
struct _Compose
/* Others */
GtkWidget *savemsg_checkbtn;
- GtkWidget *savemsg_entry;
+ GtkWidget *savemsg_combo;
/* Headers notebook */
GtkWidget *notebook;
guint header_nextrow;
ComposeHeaderEntry *header_last;
+ GHashTable *email_hashtable;
+
gchar *replyto;
gchar *cc;
gchar *bcc;
GIOChannel *exteditor_ch;
gint exteditor_tag;
-#if USE_ENCHANT
- /* GNU/aspell spell checker */
- GtkAspell *gtkaspell;
- GtkWidget *aspell_options_menu;
-#endif
-
/* Priority */
gint priority;
GtkWidget *first_entry;
GtkUIManager *ui_manager;
+#if USE_ENCHANT
+ /* GNU/aspell spell checker */
+ GtkAspell *gtkaspell;
+ GtkWidget *aspell_options_menu;
+#endif
};
struct _AttachInfo
void compose_entry_append (Compose *compose,
const gchar *address,
- ComposeEntryType type);
+ ComposeEntryType type,
+ ComposePrefType pref_type);
gint compose_send (Compose *compose);
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);
#endif /* __COMPOSE_H__ */