]> code.citadel.org Git - citadel.git/commitdiff
*** empty log message ***
authorArt Cancro <ajc@citadel.org>
Wed, 4 May 2005 03:37:10 +0000 (03:37 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 4 May 2005 03:37:10 +0000 (03:37 +0000)
citadel/imap_search.c

index 16cabdf9835f5a2c88b31cfb7fc7b211326f13e6..d315922194ee5d41a028e6beb51f4d9fb7b8fdae 100644 (file)
@@ -1,12 +1,10 @@
 /*
  * $Id$
  *
- * Implements the SEARCH command in IMAP.
- * You guessed it ... more gratuitous complexity in the protocol.
+ * Implements IMAP's gratuitously complex SEARCH command.
  *
  */
 
-
 #include "sysdep.h"
 #include <stdlib.h>
 #include <unistd.h>
@@ -53,7 +51,6 @@
 #include "genstamp.h"
 
 
-
 /*
  * imap_do_search() calls imap_do_search_msg() to search an individual
  * message after it has been fetched from the disk.  This function returns
@@ -446,6 +443,7 @@ int imap_do_search_msg(int seq, struct CtdlMessage *supplied_msg,
 void imap_do_search(int num_items, char **itemlist, int is_uid) {
        int i;
 
+       buffer_output();
        cprintf("* SEARCH ");
        if (IMAP->num_msgs > 0)
         for (i = 0; i < IMAP->num_msgs; ++i)
@@ -460,6 +458,7 @@ void imap_do_search(int num_items, char **itemlist, int is_uid) {
                }
        }
        cprintf("\r\n");
+       unbuffer_output();
 }