aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-10-18 12:14:41 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-10-18 12:14:41 +0800
commite88e358052d962c4444d36d26378f4a67cdfd5c4 (patch)
treeb42ae2dbf24a6f0328b8da953e878fc5661503e0 /mail
parent1f92328c4b5c74022215796c64c286ae95c6fd7a (diff)
downloadgsoc2013-evolution-e88e358052d962c4444d36d26378f4a67cdfd5c4.tar
gsoc2013-evolution-e88e358052d962c4444d36d26378f4a67cdfd5c4.tar.gz
gsoc2013-evolution-e88e358052d962c4444d36d26378f4a67cdfd5c4.tar.bz2
gsoc2013-evolution-e88e358052d962c4444d36d26378f4a67cdfd5c4.tar.lz
gsoc2013-evolution-e88e358052d962c4444d36d26378f4a67cdfd5c4.tar.xz
gsoc2013-evolution-e88e358052d962c4444d36d26378f4a67cdfd5c4.tar.zst
gsoc2013-evolution-e88e358052d962c4444d36d26378f4a67cdfd5c4.zip
Strip the signature from the body-text. Fixes bug #5529.
2002-10-17 Jeffrey Stedfast <fejj@ximian.com> * mail-tools.c (mail_tool_quote_message): Strip the signature from the body-text. Fixes bug #5529. svn path=/trunk/; revision=18393
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-tools.c10
2 files changed, 14 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index d8a9f89ae9..f953169b63 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-17 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-tools.c (mail_tool_quote_message): Strip the signature from
+ the body-text. Fixes bug #5529.
+
2002-10-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_multipart_signed): Don't need to pass a
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) {