" : "-- \n";
+ const gchar *sig_delim_ent = format_html ? "\n-- \n
" : "\n-- \n";
if (signature)
encoded_uid = encode_signature_uid (signature);
@@ -1291,7 +1308,7 @@ get_signature_html (EMsgComposer *composer)
"%s",
encoded_uid ? encoded_uid : "",
format_html ? "" : "\n",
- format_html || (!strncmp ("-- \n", text, 4) || strstr (text, "\n-- \n")) ? "" : "-- \n",
+ !add_delim ? "" : (!strncmp (sig_delim, text, strlen (sig_delim)) || strstr (text, sig_delim_ent)) ? "" : sig_delim,
text,
format_html ? "" : "\n",
is_top_signature (composer) ? "
" : "");
diff --git a/mail/evolution-mail.schemas.in b/mail/evolution-mail.schemas.in
index 7a975531df..418e57d371 100644
--- a/mail/evolution-mail.schemas.in
+++ b/mail/evolution-mail.schemas.in
@@ -247,6 +247,19 @@
+
+ /schemas/apps/evolution/mail/composer/no_signature_delim
+ /apps/evolution/mail/composer/no_signature_delim
+ evolution-mail
+ bool
+ false
+
+ Do not add signature delimiter
+ Set to TRUE in case you do not want to add signature delimiter
+ before your signature when composing a mail.
+
+
+
/schemas/apps/evolution/mail/composer/width
/apps/evolution/mail/composer/width
diff --git a/modules/mail/e-mail-shell-settings.c b/modules/mail/e-mail-shell-settings.c
index 907c5fb643..c20f57ce43 100644
--- a/modules/mail/e-mail-shell-settings.c
+++ b/modules/mail/e-mail-shell-settings.c
@@ -226,4 +226,8 @@ e_mail_shell_settings_init (EShell *shell)
e_shell_settings_install_property_for_key (
"composer-top-signature",
"/apps/evolution/mail/composer/top_signature");
+
+ e_shell_settings_install_property_for_key (
+ "composer-no-signature-delim",
+ "/apps/evolution/mail/composer/no_signature_delim");
}