cmd-select.c revision d756ebcfa96bd7cff02097c8f26df9df368b81b1
/* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "commands.h"
#include "imap-sync.h"
{
struct mail_storage *storage;
struct mailbox_status status;
const char *mailbox;
/* <mailbox> */
return FALSE;
if (mailbox_close(box) < 0) {
}
}
return TRUE;
return TRUE;
}
return TRUE;
}
&status) < 0) {
return TRUE;
}
/* set client's mailbox only after getting status to make sure
client->select_counter++;
if (status.first_unseen_seq != 0) {
t_strdup_printf("* OK [UNSEEN %u] First unseen.",
}
t_strdup_printf("* OK [UIDVALIDITY %u] UIDs valid",
t_strdup_printf("* OK [UIDNEXT %u] Predicted next UID",
if (status.diskspace_full) {
"Disk space is full, delete some messages.");
}
"OK [READ-ONLY] Select completed." :
"OK [READ-WRITE] Select completed.");
return TRUE;
}
{
}