From: Colin Leroy Date: Fri, 27 Mar 2009 18:35:47 +0000 (+0000) Subject: 2009-03-27 [colin] 3.7.1cvs27 X-Git-Tag: rel_3_7_2~63 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=5ce200b94f4941a471b5ee8928c2fb17c0bbc5ea;hp=467216a618eb1e98180908ad1ed48f6862ecef30 2009-03-27 [colin] 3.7.1cvs27 * src/imap.c Fix tag update when all tags are removed from another client --- diff --git a/ChangeLog b/ChangeLog index a3b4f8d60..f42b9c7fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2009-03-27 [colin] 3.7.1cvs27 + + * src/imap.c + Fix tag update when all tags are removed + from another client + +<<<<<<< ChangeLog +2009-03-25 [colin] 3.7.1cvs26 + + * configure.ac + Fix configure.ac, thanks to Pawel + +======= 2009-03-25 [colin] 3.7.1cvs25 * src/news.c @@ -6,6 +19,7 @@ bug 1883, 'Message processing fails to act on Newsgroups: field' +>>>>>>> 1.396.2.2926 2009-03-23 [colin] 3.7.1cvs24 * src/textview.c diff --git a/PATCHSETS b/PATCHSETS index fb83b1c83..15bd81deb 100644 --- a/PATCHSETS +++ b/PATCHSETS @@ -3764,4 +3764,9 @@ ( cvs diff -u -r 1.43.2.107 -r 1.43.2.108 src/toolbar.c; cvs diff -u -r 1.36.2.168 -r 1.36.2.169 src/common/utils.c; ) > 3.7.1cvs22.patchset ( cvs diff -u -r 1.654.2.3830 -r 1.654.2.3831 configure.ac; ) > 3.7.1cvs23.patchset ( cvs diff -u -r 1.96.2.217 -r 1.96.2.218 src/textview.c; ) > 3.7.1cvs24.patchset +<<<<<<< PATCHSETS +( cvs diff -u -r 1.654.2.3833 -r 1.654.2.3834 configure.ac; ) > 3.7.1cvs26.patchset +======= ( cvs diff -u -r 1.101.2.60 -r 1.101.2.61 src/news.c; cvs diff -u -r 1.1.2.10 -r 1.1.2.11 src/etpan/nntp-thread.c; ) > 3.7.1cvs25.patchset +>>>>>>> 1.1.2.3777 +( cvs diff -u -r 1.179.2.244 -r 1.179.2.245 src/imap.c; ) > 3.7.1cvs27.patchset diff --git a/configure.ac b/configure.ac index 94e2e84e1..ce2ff1825 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=7 MICRO_VERSION=1 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=25 +EXTRA_VERSION=27 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/imap.c b/src/imap.c index 68cbf7600..42a4958f2 100644 --- a/src/imap.c +++ b/src/imap.c @@ -3008,10 +3008,9 @@ static void *imap_get_uncached_messages_thread(void *data) g_slist_free(tags); continue; } - 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; @@ -3021,12 +3020,14 @@ static void *imap_get_uncached_messages_thread(void *data) got_alien_tags = TRUE; } if (!g_slist_find(msginfo->tags, GINT_TO_POINTER(id))) { - msginfo->tags = g_slist_append( + msginfo->tags = g_slist_prepend( msginfo->tags, GINT_TO_POINTER(id)); } g_free(real_tag); } + if (msginfo->tags) + msginfo->tags = g_slist_reverse(msginfo->tags); slist_free_strings(tags); g_slist_free(tags); msginfo->folder = item;