aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 129a6249d0..e551271f63 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -879,12 +879,14 @@ get_signature_html (EMsgComposer *composer)
}
if (!text) {
- if (!sig_file)
- return NULL;
- /* printf ("sig file: %s\n", sig_file); */
-
- mail_config_signature_run_script (script);
- text = e_msg_composer_get_sig_file_content (sig_file, format_html);
+ if (script)
+ text = mail_config_signature_run_script (script);
+ else {
+ if (!sig_file)
+ return NULL;
+ /* printf ("sig file: %s\n", sig_file); */
+ text = e_msg_composer_get_sig_file_content (sig_file, format_html);
+ }
}
/* printf ("text: %s\n", text); */