/* if mailbox has at least 1 new message, sets mtime > atime of mailbox
* so buffy check reports new mail */
-static void reset_atime (CONTEXT *ctx, struct stat *st)
+void mbox_reset_atime (CONTEXT *ctx, struct stat *st)
{
struct utimbuf utimebuf;
int i, found = 0;
}
/* Restore the previous access/modification times */
- reset_atime (ctx, &statbuf);
+ mbox_reset_atime (ctx, &statbuf);
/* reopen the mailbox in read-only mode */
if ((ctx->fp = fopen (ctx->path, "r")) == NULL)
{
if (!ctx->quiet)
mutt_message _("Mailbox is unchanged.");
+ if (ctx->magic == M_MBOX || ctx->magic == M_MMDF)
+ mbox_reset_atime (ctx, NULL);
mx_fastclose_mailbox (ctx);
return 0;
}
int mmdf_parse_mailbox (CONTEXT *);
void mbox_unlock_mailbox (CONTEXT *);
int mbox_check_empty (const char *);
+void mbox_reset_atime (CONTEXT *, struct stat *);
int mh_read_dir (CONTEXT *, const char *);
int mh_sync_mailbox (CONTEXT *, int *);