aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-19 04:38:45 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-19 04:38:45 +0800
commit16dae9615ebb541aa7332bcac2d1bfb055d7595b (patch)
tree45c0a825ebe0c2b8d8e26da496c58890013a85e4 /camel/providers
parentf19b05e4561a256176bb09367ccbc49add7030d9 (diff)
downloadgsoc2013-evolution-16dae9615ebb541aa7332bcac2d1bfb055d7595b.tar
gsoc2013-evolution-16dae9615ebb541aa7332bcac2d1bfb055d7595b.tar.gz
gsoc2013-evolution-16dae9615ebb541aa7332bcac2d1bfb055d7595b.tar.bz2
gsoc2013-evolution-16dae9615ebb541aa7332bcac2d1bfb055d7595b.tar.lz
gsoc2013-evolution-16dae9615ebb541aa7332bcac2d1bfb055d7595b.tar.xz
gsoc2013-evolution-16dae9615ebb541aa7332bcac2d1bfb055d7595b.tar.zst
gsoc2013-evolution-16dae9615ebb541aa7332bcac2d1bfb055d7595b.zip
Fix my Cyrus imapd workaround...instead of checking to see if info->flags
2001-10-18 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_sync_online): Fix my Cyrus imapd workaround...instead of checking to see if info->flags == FLAGGED, just check to see if it contains any IMAP flags. svn path=/trunk/; revision=13770
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-folder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 5fe517f4ef..d79cb33b9b 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -631,13 +631,13 @@ imap_sync_online (CamelFolder *folder, CamelException *ex)
continue;
}
- /* Note: Cyrus will not accept an empty-set of flags
- so... if this is true then we want to unset the
- previously set flags.*/
- unset = info->flags == CAMEL_MESSAGE_FOLDER_FLAGGED;
+ /* Note: Cyrus is broken and will not accept an
+ empty-set of flags so... if this is true then we
+ want to unset the previously set flags.*/
+ unset = !(info->flags & CAMEL_IMAP_SERVER_FLAGS);
/* FIXME: since we don't know the previously set
- flags, if unset is TRUE then assume all were set? */
+ flags, if unset is TRUE then just unset all the flags? */
flaglist = imap_create_flag_list (unset ? CAMEL_IMAP_SERVER_FLAGS : info->flags);
matches = get_matching (folder, info->flags & (CAMEL_IMAP_SERVER_FLAGS | CAMEL_MESSAGE_FOLDER_FLAGGED),