aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/attachment-reminder/ChangeLog6
-rw-r--r--plugins/attachment-reminder/attachment-reminder.c6
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 <jjohnny@novell.com>
+
+ ** Fixes Bug #473198
+
+ * attachment-reminder.c (strip_text_msg): Ignore signature.
+
2008-04-07 Ambuj Chitranshi <ambuj_1075@yahoo.co.in>
** 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);