diff options
author | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-06-21 06:33:40 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-06-21 06:33:40 +0800 |
commit | 5d477147b7b0725c28a09a037e101266c2f8ed3f (patch) | |
tree | d42b3c3864479a83f634e8887b7e148bab628e28 /camel/providers | |
parent | b07386e871e4e14eb45757d939b835a529e845f4 (diff) | |
download | gsoc2013-evolution-5d477147b7b0725c28a09a037e101266c2f8ed3f.tar.gz gsoc2013-evolution-5d477147b7b0725c28a09a037e101266c2f8ed3f.tar.zst gsoc2013-evolution-5d477147b7b0725c28a09a037e101266c2f8ed3f.zip |
now parses flags gotten from the IMAP server correctly
svn path=/trunk/; revision=3654
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 0323ecb7ff..d6705ace8e 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -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 */ |