cmd-search.c revision 39e6fcc3e8b1ccb13087c232cb6bdea04d1a20a4
/* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "ostream.h"
#include "str.h"
#include "commands.h"
#include "imap-search.h"
#define STRBUF_SIZE 1024
struct mail_search_arg *sargs)
{
struct mail_search_context *ctx;
struct mailbox_transaction_context *trans;
return FALSE;
}
/* flush */
str_truncate(str, 0);
}
}
if (mailbox_transaction_commit(trans, 0) < 0)
ret = -1;
}
return ret == 0;
}
{
struct mail_search_arg *sargs;
int args_count;
if (args_count < 1) {
if (args_count == -2)
return FALSE;
"Missing SEARCH arguments.");
return TRUE;
}
if (!client_verify_open_mailbox(cmd))
return TRUE;
/* CHARSET specified */
args++;
"Invalid charset argument.");
return TRUE;
}
args++;
} else {
}
/* error in search arguments */
0, "OK Search completed.");
} else {
}
return TRUE;
}