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
This commit is contained in:
committed by
Jeffrey Stedfast
parent
1f92328c4b
commit
e88e358052
@ -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
|
||||
|
||||
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user