aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/attachment-reminder/attachment-reminder.c
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/attachment-reminder.c
parentd7821c77a36d73a8f5352a41f8c68ac9961a6ad3 (diff)
downloadgsoc2013-evolution-3622f22da245306bc3d9a577c51b263c74ec0dc7.tar.gz
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/attachment-reminder.c')
-rw-r--r--plugins/attachment-reminder/attachment-reminder.c6
1 files changed, 4 insertions, 2 deletions
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);