[evolution-data-server] imapx_write_flags: Fix a typo which flag to skip



commit be3b5c24c25aa363bc171dbd0b1ee724ebf94411
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jan 27 13:50:37 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/providers/imapx/camel-imapx-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-utils.c b/camel/providers/imapx/camel-imapx-utils.c
index aa06329..3447222 100644
--- a/camel/providers/imapx/camel-imapx-utils.c
+++ b/camel/providers/imapx/camel-imapx-utils.c
@@ -220,7 +220,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]