aboutsummaryrefslogtreecommitdiffstats
path: root/composer/evolution-composer.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/evolution-composer.c')
-rw-r--r--composer/evolution-composer.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/composer/evolution-composer.c b/composer/evolution-composer.c
index 0d8af6eed9..3036f98e82 100644
--- a/composer/evolution-composer.c
+++ b/composer/evolution-composer.c
@@ -239,7 +239,21 @@ class_init (EvolutionComposerClass *klass)
static void
init (EvolutionComposer *composer)
{
- composer->composer = e_msg_composer_new ();
+ const MailConfigAccount *account;
+ gboolean send_html;
+ gchar *sig_file = NULL;
+
+ account = mail_config_get_default_account ();
+ send_html = mail_config_get_send_html ();
+
+ if (account->id)
+ sig_file = account->id->signature;
+
+ if (sig_file)
+ composer->composer = e_msg_composer_new_with_sig_file (sig_file, send_html);
+ else
+ composer->composer = e_msg_composer_new ();
+
gtk_signal_connect (GTK_OBJECT (composer->composer), "send",
GTK_SIGNAL_FUNC (send_cb), NULL);
gtk_signal_connect (GTK_OBJECT (composer->composer), "postpone",