[Commits] imap.c 1.179.2.258 1.179.2.259
colin at claws-mail.org
colin at claws-mail.org
Thu Aug 16 16:24:11 CEST 2012
Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv14322/src
Modified Files:
Tag: gtk2
imap.c
Log Message:
2012-08-16 [colin] 3.8.1cvs33
* src/imap.c
Always clear the tags list when fetching a folder, or
Claws will never untag an untagged email. Patch by
Igor Mammedov <imammedo at redhat.com>
Index: imap.c
===================================================================
RCS file: /home/claws-mail/claws/src/imap.c,v
retrieving revision 1.179.2.258
retrieving revision 1.179.2.259
diff -u -d -r1.179.2.258 -r1.179.2.259
--- imap.c 7 Jul 2012 07:09:27 -0000 1.179.2.258
+++ imap.c 16 Aug 2012 14:24:08 -0000 1.179.2.259
@@ -4804,10 +4804,9 @@
GSList *tags = g_hash_table_lookup(tags_hash, GINT_TO_POINTER(msginfo->msgnum));
GSList *cur;
- if (tags != NULL) {
- g_slist_free(msginfo->tags);
- msginfo->tags = NULL;
- }
+ g_slist_free(msginfo->tags);
+ msginfo->tags = NULL;
+
for (cur = tags; cur; cur = cur->next) {
gchar *real_tag = imap_modified_utf7_to_utf8(cur->data, TRUE);
gint id = 0;
@@ -4816,11 +4815,9 @@
id = tags_add_tag(real_tag);
got_alien_tags = TRUE;
}
- if (!g_slist_find(msginfo->tags, GINT_TO_POINTER(id))) {
- msginfo->tags = g_slist_append(
+ msginfo->tags = g_slist_append(
msginfo->tags,
GINT_TO_POINTER(id));
- }
g_free(real_tag);
}
slist_free_strings(tags);
More information about the Commits
mailing list