[evolution-data-server/gnome-3-10] imapx_write_flags: Fix a typo which flag to skip



commit c2c845287362a2c000b8921bf6c145b2e42458be
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jan 27 13:55:34 2014 +0100

    imapx_write_flags: Fix a typo which flag to skip
    
    The code was surely trying to avoid writing CAMEL_IMAPX_MESSAGE_RECENT
    flag back to the server, but the actual behaviour was that each flag
    had been ignored, if the CAMEL_IMAPX_MESSAGE_RECENT was set.
    This could have an effect of copied read message being marked as unread
    in the destination IMAPx folder.

 camel/camel-imapx-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-imapx-utils.c b/camel/camel-imapx-utils.c
index c742906..0caef23 100644
--- a/camel/camel-imapx-utils.c
+++ b/camel/camel-imapx-utils.c
@@ -223,7 +223,7 @@ imapx_write_flags (GString *string,
 
        for (i = 0; flags != 0 && i< G_N_ELEMENTS (flag_table); i++) {
                if (flag_table[i].flag & flags) {
-                       if (flags & CAMEL_IMAPX_MESSAGE_RECENT)
+                       if (flag_table[i].flag & CAMEL_IMAPX_MESSAGE_RECENT)
                                continue;
                        if (!first)
                                g_string_append_c (string, ' ');


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