evolution r35521 - trunk/plugins/attachment-reminder



Author: jjohnny
Date: Tue May 20 19:04:10 2008
New Revision: 35521
URL: http://svn.gnome.org/viewvc/evolution?rev=35521&view=rev

Log:
Fix for #473198. Attachment Reminder Plugin : Ignore signatures when looking for clues.


Modified:
   trunk/plugins/attachment-reminder/ChangeLog
   trunk/plugins/attachment-reminder/attachment-reminder.c

Modified: trunk/plugins/attachment-reminder/attachment-reminder.c
==============================================================================
--- trunk/plugins/attachment-reminder/attachment-reminder.c	(original)
+++ trunk/plugins/attachment-reminder/attachment-reminder.c	Tue May 20 19:04:10 2008
@@ -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 @@
 	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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]