aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-format.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-19 12:44:39 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-19 12:44:39 +0800
commit66da354765a8578ed6f7cf7ef402863cd4bf9884 (patch)
treeba974fad4e2c744ac50ba58d33a0c0db44f60ae5 /mail/mail-format.c
parent426358b4c7b2581794cbf6b5478c132665d70338 (diff)
downloadgsoc2013-evolution-66da354765a8578ed6f7cf7ef402863cd4bf9884.tar.gz
gsoc2013-evolution-66da354765a8578ed6f7cf7ef402863cd4bf9884.tar.zst
gsoc2013-evolution-66da354765a8578ed6f7cf7ef402863cd4bf9884.zip
Get the MailConfigIdentity *before* we create a new composer object so
2000-10-19 Jeffrey Stedfast <fejj@helixcode.com> * mail-format.c (mail_generate_reply): Get the MailConfigIdentity *before* we create a new composer object so that we can set the signature file. svn path=/trunk/; revision=6026
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r--mail/mail-format.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 5ae440188a..ccbdf420fd 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -1631,6 +1631,10 @@ mail_generate_reply (CamelMimeMessage *message, gboolean to_all)
MailConfigIdentity *id;
gchar *sig_file = NULL;
+ id = mail_config_get_default_identity ();
+ if (id)
+ sig_file = id->sig;
+
composer = e_msg_composer_new_with_sig_file (sig_file);
if (!composer)
return NULL;
@@ -1639,10 +1643,6 @@ mail_generate_reply (CamelMimeMessage *message, gboolean to_all)
contents = camel_medium_get_content_object (CAMEL_MEDIUM (message));
text = mail_get_message_body (contents, want_plain, &is_html);
- id = mail_config_get_default_identity ();
- if (id)
- sig_file = id->sig;
-
/* Set the quoted reply text. */
if (text) {
char *repl_text;