static const char *mbox(int id)
{
static const char *msgs[] = {
+#ifdef IMAP_STORAGE
+ imapfolder,
+#else
"INBOX",
+#endif
"Old",
"Work",
"Family",
/*assume a NULL folder means INBOX*/
if (!folder)
return 0;
- if(!strcasecmp(folder, "INBOX"))
+#ifdef IMAP_STORAGE
+ if (!strcasecmp(folder, imapfolder))
+#else
+ if (!strcasecmp(folder, "INBOX"))
+#endif
return 0;
else if (!strcasecmp(folder, "Old"))
return 1;
mailboxnc = (char *)mailbox_context;
}
if (newmsgs) {
- if((*newmsgs = messagecount(context, mailboxnc, "INBOX")) < 0)
+ if((*newmsgs = messagecount(context, mailboxnc, imapfolder)) < 0)
return -1;
}
if (oldmsgs) {