imap-status.c revision e10d8b1291090c26b9ef499637e6e632485ca5be
/* Copyright (c) 2002-2010 Dovecot authors, see the included COPYING file */
#include "imap-common.h"
#include "hex-binary.h"
#include "str.h"
#include "imap-quote.h"
#include "imap-status.h"
enum mailbox_status_items *items_r)
{
const char *item;
enum mailbox_status_items items;
items = 0;
/* list may contain only atoms */
"Status list contains non-atoms.");
return -1;
}
items |= STATUS_MESSAGES;
items |= STATUS_RECENT;
items |= STATUS_UIDNEXT;
items |= STATUS_UNSEEN;
items |= STATUS_GUID;
else {
return -1;
}
}
return 0;
}
struct mail_namespace *ns,
{
enum mail_error error;
int ret;
/* this mailbox is selected */
return TRUE;
}
/* open the mailbox */
if ((items & STATUS_HIGHESTMODSEQ) != 0)
if (client->enabled_features != 0)
if (ret == 0)
else {
}
mailbox_free(&box);
return ret;
}
enum mailbox_status_items items,
const struct mailbox_status *status)
{
if (items & STATUS_MESSAGES)
if (items & STATUS_RECENT)
if (items & STATUS_UIDNEXT)
if (items & STATUS_UIDVALIDITY)
if (items & STATUS_UNSEEN)
if (items & STATUS_HIGHESTMODSEQ) {
(unsigned long long)status->highest_modseq);
}
if (items & STATUS_GUID) {
sizeof(status->mailbox_guid)));
}
if (items != 0)
}