index-status.c revision a5cc9935581d9503b5f77097390d903b8add6c44
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen/* Copyright (C) 2002 Timo Sirainen */
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenint index_storage_get_status_locked(struct index_mailbox *ibox,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen memset(status_r, 0, sizeof(struct mailbox_status));
66ae183b6e895216037bd921367670f4b0665911Timo Sirainen /* we can get most of the status items without any trouble */
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen hdr->messages_count - hdr->seen_messages_count;
46c31f64b9f0949f00b7819f45b22f2d64b2ea27Timo Sirainen if (mail_index_lookup_first(ibox->view, 0, MAIL_SEEN,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen status_r->keywords = mail_index_get_keywords(ibox->index);
8fa41238067c854435884c459963fde6f8c6436bTimo Sirainenint index_storage_get_status(struct mailbox *box,
46c31f64b9f0949f00b7819f45b22f2d64b2ea27Timo Sirainen struct index_mailbox *ibox = (struct index_mailbox *)box;