aboutsummaryrefslogtreecommitdiffstats
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
parentde6a038de483b86729070f81dbadaf364dcf28b9 (diff)
downloadgsoc2013-evolution-b03dcd755230c2b6cb896963977f2537ed50b2a4.tar
gsoc2013-evolution-b03dcd755230c2b6cb896963977f2537ed50b2a4.tar.gz
gsoc2013-evolution-b03dcd755230c2b6cb896963977f2537ed50b2a4.tar.bz2
gsoc2013-evolution-b03dcd755230c2b6cb896963977f2537ed50b2a4.tar.lz
gsoc2013-evolution-b03dcd755230c2b6cb896963977f2537ed50b2a4.tar.xz
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
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-callbacks.c11
2 files changed, 15 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index a2a3d09a88..9740c6ad04 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-12 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * mail-callbacks.c (forward_message): Attach a signature when
+ forwarding, fixes bug #826.
+
2000-12-11 Dan Winship <danw@helixcode.com>
* session.c (mail_session_enable_interaction): New function to
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;