now parses flags gotten from the IMAP server correctly
authorJeffrey Stedfast <fejj@src.gnome.org>
Tue, 20 Jun 2000 22:33:40 +0000 (22:33 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Tue, 20 Jun 2000 22:33:40 +0000 (22:33 +0000)
camel/ChangeLog
camel/providers/imap/camel-imap-folder.c

index c078eb8..6b4a0ef 100644 (file)
@@ -10,6 +10,8 @@
        (imap_sync): Added code to set flags on messages that have had
        their flags changed (however I #if'd it out until we are more
        confidant in the IMAP code :)
+       (imap_summary_get_by_uid): Now parese flags correctly.
+       (imap_get_summary): Now parese flags correctly.
 
        * camel-url.c (check_equal): No need to check s1 if s2 is NULL
        (camel_url_equal): Don't check the passwd component of the url.
index 0323ecb..d6705ac 100644 (file)
@@ -956,17 +956,17 @@ imap_get_summary (CamelFolder *folder, CamelException *ex)
 
                /* now we gotta parse for the flags */
                info->flags = 0;
-               if (!strstr (p, "\\Seen"))
+               if (strstr (p, "\\Seen"))
                        info->flags |= CAMEL_MESSAGE_SEEN;
-               if (!strstr (p, "\\Answered"))
+               if (strstr (p, "\\Answered"))
                        info->flags |= CAMEL_MESSAGE_ANSWERED;
-               if (!strstr (p, "\\Flagged"))
+               if (strstr (p, "\\Flagged"))
                        info->flags |= CAMEL_MESSAGE_FLAGGED;
-               if (!strstr (p, "\\Deleted"))
+               if (strstr (p, "\\Deleted"))
                        info->flags |= CAMEL_MESSAGE_DELETED;
-               if (!strstr (p, "\\Draft"))
+               if (strstr (p, "\\Draft"))
                        info->flags |= CAMEL_MESSAGE_DRAFT;
-               
+
                g_free (result);
 
                g_ptr_array_add (array, info);
@@ -1055,17 +1055,17 @@ imap_summary_get_by_uid (CamelFolder *folder, const char *uid)
        
        /* now we gotta parse for the flags */
        info->flags = 0;
-       if (!strstr (p, "\\Seen"))
+       if (strstr (p, "\\Seen"))
                info->flags |= CAMEL_MESSAGE_SEEN;
-       if (!strstr (p, "\\Answered"))
+       if (strstr (p, "\\Answered"))
                info->flags |= CAMEL_MESSAGE_ANSWERED;
-       if (!strstr (p, "\\Flagged"))
+       if (strstr (p, "\\Flagged"))
                info->flags |= CAMEL_MESSAGE_FLAGGED;
-       if (!strstr (p, "\\Deleted"))
+       if (strstr (p, "\\Deleted"))
                info->flags |= CAMEL_MESSAGE_DELETED;
-       if (!strstr (p, "\\Draft"))
+       if (strstr (p, "\\Draft"))
                info->flags |= CAMEL_MESSAGE_DRAFT;
-       
+
        g_free (result);
 
        /* since we didn't have it cached, lets add it to our cache */