aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/attachment-reminder
diff options
context:
space:
mode:
authorJohnny Jacob <jjohnny@src.gnome.org>2008-05-21 03:04:10 +0800
committerJohnny Jacob <jjohnny@src.gnome.org>2008-05-21 03:04:10 +0800
commit3622f22da245306bc3d9a577c51b263c74ec0dc7 (patch)
tree6b19aea53f775fcfdf47e3404cda9f8bfbfa3ae0 /plugins/attachment-reminder
parentd7821c77a36d73a8f5352a41f8c68ac9961a6ad3 (diff)
downloadgsoc2013-evolution-3622f22da245306bc3d9a577c51b263c74ec0dc7.tar
gsoc2013-evolution-3622f22da245306bc3d9a577c51b263c74ec0dc7.tar.gz
gsoc2013-evolution-3622f22da245306bc3d9a577c51b263c74ec0dc7.tar.bz2
gsoc2013-evolution-3622f22da245306bc3d9a577c51b263c74ec0dc7.tar.lz
gsoc2013-evolution-3622f22da245306bc3d9a577c51b263c74ec0dc7.tar.xz
gsoc2013-evolution-3622f22da245306bc3d9a577c51b263c74ec0dc7.tar.zst
gsoc2013-evolution-3622f22da245306bc3d9a577c51b263c74ec0dc7.zip
Fix for #473198. Attachment Reminder Plugin : Ignore signatures when looking for clues.
svn path=/trunk/; revision=35521
Diffstat (limited to 'plugins/attachment-reminder')
-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);