aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r--mail/mail-tools.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c
index 217c0db3f2..6a210c2204 100644
--- a/mail/mail-tools.c
+++ b/mail/mail-tools.c
@@ -362,7 +362,15 @@ mail_tool_quote_message (CamelMimeMessage *message, const char *fmt, ...)
/* Set the quoted reply text. */
if (text) {
- gchar *ret_text, *credits = NULL;
+ char *sig, *p, *ret_text, *credits = NULL;
+
+ /* look for the signature and strip it off */
+ sig = text;
+ while ((p = strstr (sig, "\n-- \n")))
+ sig = p + 4;
+
+ if (sig != text)
+ *sig = '\0';
/* create credits */
if (fmt) {