/*
* $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>
#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
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)
}
}
cprintf("\r\n");
+ unbuffer_output();
}