}
else
#endif
+ {
/* By default, fill buf with the next mailbox that contains unread
* mail */
mutt_mailbox(buf, sizeof(buf));
+ }
if (mutt_enter_fname(cp, buf, sizeof(buf), 1) == -1)
{
WHERE struct RegexList UnSubscribedLists INITVAL(STAILQ_HEAD_INITIALIZER(UnSubscribedLists));
WHERE struct ReplaceList SubjectRegexList INITVAL(STAILQ_HEAD_INITIALIZER(SubjectRegexList));
-WHERE unsigned short Counter;
-
/* flags for received signals */
WHERE SIG_ATOMIC_VOLATILE_T SigAlrm;
WHERE SIG_ATOMIC_VOLATILE_T SigInt;
adata->seqno = false;
adata->nextcmd = false;
adata->lastcmd = false;
- adata->status = false;
+ adata->status = 0;
memset(adata->cmds, 0, sizeof(struct ImapCommand) * adata->cmdslots);
}
int count = 0;
struct ImapMbox mx, pmx;
int rc;
- const char *condstore;
+ const char *condstore = NULL;
if (imap_parse_path(ctx->mailbox->path, &mx))
{
adata->ctx = ctx;
/* clear mailbox status */
- adata->status = false;
+ adata->status = 0;
memset(adata->ctx->mailbox->rights, 0, sizeof(adata->ctx->mailbox->rights));
adata->new_mail_count = 0;
adata->max_msn = 0;
*/
static void mailbox_check(struct Mailbox *m, struct stat *ctx_sb, bool check_stats)
{
- struct stat sb;
-#ifdef USE_SIDEBAR
- short orig_new;
- int orig_count, orig_unread, orig_flagged;
-#endif
-
- memset(&sb, 0, sizeof(sb));
+ struct stat sb = { 0 };
#ifdef USE_SIDEBAR
- orig_new = m->has_new;
- orig_count = m->msg_count;
- orig_unread = m->msg_unread;
- orig_flagged = m->msg_flagged;
+ short orig_new = m->has_new;
+ int orig_count = m->msg_count;
+ int orig_unread = m->msg_unread;
+ int orig_flagged = m->msg_flagged;
#endif
if (m->magic != MUTT_IMAP)
else
#endif
if (stat(m->path, &sb) != 0 || (S_ISREG(sb.st_mode) && sb.st_size == 0) ||
- ((m->magic == MUTT_UNKNOWN) &&
- (m->magic = mx_path_probe(m->path, NULL)) <= 0))
+ ((m->magic == MUTT_UNKNOWN) && (m->magic = mx_path_probe(m->path, NULL)) <= 0))
{
/* if the mailbox still doesn't exist, set the newly created flag to be
* ready for when it does. */
*/
static int maildir_mbox_check(struct Context *ctx, int *index_hint)
{
- struct stat st_new; /* status of the "new" subdirectory */
- struct stat st_cur; /* status of the "cur" subdirectory */
+ struct stat st_new; /* status of the "new" subdirectory */
+ struct stat st_cur; /* status of the "cur" subdirectory */
int changed = 0; /* bitmask representing which subdirectories
have changed. 0x1 = new, 0x2 = cur */
bool occult = false; /* messages were removed from the mailbox */
}
if (!realpath(ctx->mailbox->path, ctx->mailbox->realpath))
+ {
mutt_str_strfcpy(ctx->mailbox->realpath, ctx->mailbox->path,
sizeof(ctx->mailbox->realpath));
+ }
ctx->msgnotreadyet = -1;
ctx->collapsed = false;