aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-12-13 06:26:19 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-12-13 06:26:19 +0800
commitb03dcd755230c2b6cb896963977f2537ed50b2a4 (patch)
tree358db1eb0d6fd2361d6bad2a9ec94c68e7115ca0 /mail/mail-callbacks.c
parentde6a038de483b86729070f81dbadaf364dcf28b9 (diff)
downloadgsoc2013-evolution-b03dcd755230c2b6cb896963977f2537ed50b2a4.tar.gz
gsoc2013-evolution-b03dcd755230c2b6cb896963977f2537ed50b2a4.tar.zst
gsoc2013-evolution-b03dcd755230c2b6cb896963977f2537ed50b2a4.zip
Attach a signature when forwarding, fixes bug #826.
2000-12-12 Jeffrey Stedfast <fejj@helixcode.com> * mail-callbacks.c (forward_message): Attach a signature when forwarding, fixes bug #826. svn path=/trunk/; revision=6944
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c11
1 files changed, 10 insertions, 1 deletions
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;