aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 49bc245759..53a043c33f 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1373,22 +1373,15 @@ forward (GtkWidget *widget, gpointer user_data)
void
-post_message (GtkWidget *widget, gpointer user_data)
+post_to_url (const char *url)
{
- FolderBrowser *fb = FOLDER_BROWSER (user_data);
GtkWidget *composer;
- char *url;
-
- if (FOLDER_BROWSER_IS_DESTROYED (fb) || !check_send_configuration (fb))
- return;
composer = create_msg_composer (NULL, TRUE, NULL);
if (!composer)
return;
- url = mail_tools_folder_to_url (fb->folder);
e_msg_composer_hdrs_set_post_to ((EMsgComposerHdrs *) ((EMsgComposer *) composer)->hdrs, url);
- g_free (url);
gtk_signal_connect (GTK_OBJECT (composer), "send",
GTK_SIGNAL_FUNC (composer_send_cb), NULL);
@@ -1399,6 +1392,21 @@ post_message (GtkWidget *widget, gpointer user_data)
}
void
+post_message (GtkWidget *widget, gpointer user_data)
+{
+ FolderBrowser *fb = FOLDER_BROWSER (user_data);
+ GtkWidget *composer;
+ char *url;
+
+ if (FOLDER_BROWSER_IS_DESTROYED (fb) || !check_send_configuration (fb))
+ return;
+
+ url = mail_tools_folder_to_url (fb->folder);
+ post_to_url (url);
+ g_free (url);
+}
+
+void
post_reply (GtkWidget *widget, gpointer user_data)
{
FolderBrowser *fb = FOLDER_BROWSER (user_data);