From d103befa6dce296f571319c0b69700b1f06d4a83 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 16 Aug 2001 23:31:34 +0000 Subject: If we are online and message flags have changed in the current folder, 2001-08-16 Jeffrey Stedfast * providers/imap/camel-imap-store.c (imap_keepalive): If we are online and message flags have changed in the current folder, sync the flags else do a NOOP. This fixes bug #4666. Also lock around the NOOP command. * providers/imap/camel-imap-folder.c (imap_sync_online): Don't ever send "STORE FLAGS.SILENT ()" since Cyrus imapd doesn't like this (and maybe others too?) so what we'll do instead is to send "STORE -FLAGS.SILENT (\Seen \Answered \Deleted \Marked)" to clear all the flags (since this is in essence what we want to do anyway). svn path=/trunk/; revision=12136 --- camel/providers/imap/camel-imap-utils.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'camel/providers/imap/camel-imap-utils.c') diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c index df8ddc4f0e..ce547a5198 100644 --- a/camel/providers/imap/camel-imap-utils.c +++ b/camel/providers/imap/camel-imap-utils.c @@ -549,17 +549,6 @@ imap_parse_body (char **body_p, CamelFolder *folder, *body_p = body; } -static void -strip (char *str, char c) -{ - char *src, *dst; - - for (src = dst = str; *src; src++) - if (*src != c) - *dst++ = *src; - *dst = '\0'; -} - /** * imap_quote_string: * @str: the string to quote, which must not contain CR or LF -- cgit v1.2.3