From 3622f22da245306bc3d9a577c51b263c74ec0dc7 Mon Sep 17 00:00:00 2001 From: Johnny Jacob Date: Tue, 20 May 2008 19:04:10 +0000 Subject: Fix for #473198. Attachment Reminder Plugin : Ignore signatures when looking for clues. svn path=/trunk/; revision=35521 --- plugins/attachment-reminder/ChangeLog | 6 ++++++ plugins/attachment-reminder/attachment-reminder.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/attachment-reminder/ChangeLog b/plugins/attachment-reminder/ChangeLog index 92ed2b6413..767fcf5a66 100644 --- a/plugins/attachment-reminder/ChangeLog +++ b/plugins/attachment-reminder/ChangeLog @@ -1,3 +1,9 @@ +2008-05-20 Johnny Jacob + + ** Fixes Bug #473198 + + * attachment-reminder.c (strip_text_msg): Ignore signature. + 2008-04-07 Ambuj Chitranshi ** Fix for bug #484793 diff --git a/plugins/attachment-reminder/attachment-reminder.c b/plugins/attachment-reminder/attachment-reminder.c index 968815bf0f..1c26b201f0 100644 --- a/plugins/attachment-reminder/attachment-reminder.c +++ b/plugins/attachment-reminder/attachment-reminder.c @@ -48,6 +48,7 @@ #define GCONF_KEY_ATTACHMENT_REMINDER "/apps/evolution/mail/prompts/attachment_presend_check" #define GCONF_KEY_ATTACH_REMINDER_CLUES "/apps/evolution/mail/attachment_reminder_clues" +#define SIGNATURE "-- " typedef struct { GladeXML *xml; @@ -186,8 +187,9 @@ strip_text_msg (gchar *msg) guint i=0; gchar *temp; - while (lines [i]){ - if (lines [i] != NULL && !g_str_has_prefix (g_strstrip(lines[i]), ">")){ + /* Note : HTML Signatures won't work. Depends on Bug #522784 */ + while (lines [i] && !g_strcmp0 (lines[i], SIGNATURE)){ + if (!g_str_has_prefix (g_strstrip(lines[i]), ">")){ temp = stripped_msg; stripped_msg = g_strconcat (" ", stripped_msg, lines[i], NULL); -- cgit v1.2.3