From b03dcd755230c2b6cb896963977f2537ed50b2a4 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 12 Dec 2000 22:26:19 +0000 Subject: Attach a signature when forwarding, fixes bug #826. 2000-12-12 Jeffrey Stedfast * mail-callbacks.c (forward_message): Attach a signature when forwarding, fixes bug #826. svn path=/trunk/; revision=6944 --- mail/mail-callbacks.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index deaabb00ac..5307eb976f 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -484,7 +484,10 @@ forward_message (FolderBrowser *fb, gboolean attach) { EMsgComposer *composer; CamelMimeMessage *cursor_msg; + MailConfigIdentity *id; GPtrArray *uids; + gchar *sig_file = NULL; + gboolean send_html; cursor_msg = fb->mail_display->current_message; g_return_if_fail (cursor_msg != NULL); @@ -492,7 +495,13 @@ forward_message (FolderBrowser *fb, gboolean attach) if (!check_send_configuration (fb)) return; - composer = e_msg_composer_new (); + id = mail_config_get_default_identity (); + send_html = mail_config_send_html (); + + if (id) + sig_file = id->sig; + + composer = e_msg_composer_new_with_sig_file (sig_file, send_html); if (!composer) return; -- cgit