clearn the learn bit only if set

2004-03-12  Radek Doulik  <rodo@ximian.com>

	* camel-folder.c (folder_changed): clearn the learn bit only if set

svn path=/trunk/; revision=25051
This commit is contained in:
Radek Doulik
2004-03-12 21:36:49 +00:00
committed by Radek Doulik
parent e28d5364ac
commit b4900461b9
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2004-03-12 Radek Doulik <rodo@ximian.com>
* camel-folder.c (folder_changed): clearn the learn bit only if set
2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
Fixes for bug #55018.

View File

@ -1723,10 +1723,9 @@ folder_changed (CamelObject *obj, gpointer event_data)
notjunk = g_ptr_array_new();
g_ptr_array_add (notjunk, g_strdup (changed->uid_changed->pdata [i]));
}
}
/* reset junk learn flag so that we don't process it again */
camel_folder_set_message_flags (folder, changed->uid_changed->pdata [i], CAMEL_MESSAGE_JUNK_LEARN, 0);
camel_folder_set_message_flags (folder, changed->uid_changed->pdata [i], CAMEL_MESSAGE_JUNK_LEARN, 0);
}
}
d(if (junk || notjunk) printf("** Have '%d' messages for junk filter to learn, launching thread to process them\n",
(junk ? junk->len : 0) + (notjunk ? notjunk->len : 0)));