projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2012-08-16 [colin] 3.8.1cvs33
[claws.git]
/
src
/
imap.c
diff --git
a/src/imap.c
b/src/imap.c
index ebf45bb81752ff09a3b7edccef316f2a04ee1e54..493ff31da6e2c8ef4b1badb964849a4947bd2129 100644
(file)
--- a/
src/imap.c
+++ b/
src/imap.c
@@
-4804,10
+4804,9
@@
bail:
GSList *tags = g_hash_table_lookup(tags_hash, GINT_TO_POINTER(msginfo->msgnum));
GSList *cur;
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;
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
@@
bail:
id = tags_add_tag(real_tag);
got_alien_tags = TRUE;
}
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));
msginfo->tags,
GINT_TO_POINTER(id));
- }
g_free(real_tag);
}
slist_free_strings(tags);
g_free(real_tag);
}
slist_free_strings(tags);