summaryrefslogtreecommitdiffstats
path: root/mbox.c
diff options
context:
space:
mode:
authorRichard Russon <rich@flatcap.org>2016-06-04 11:31:56 -0700
committerRichard Russon <rich@flatcap.org>2016-06-04 11:31:56 -0700
commit389c74bb20b20ab31c14460962fbbb6bba82127d (patch)
tree517d42df0dc96b1379888a007bdeaee45c2d2bd6 /mbox.c
parentc64cf70d1befaa9e9a5396dafc1b1ae3b0a63cf9 (diff)
Add neomutt version of sidebar patch. (closes #3829)
This is the patch from neomutt; branch 'devel/win-sidebar'; commit c796fa85f9cacefb69b8f7d8545fc9ba71674180 with the following changes: - move the sample muttrc and vimrc to contrib. - remove the README.sidebar. - empty out the PATCHES file.
Diffstat (limited to 'mbox.c')
-rw-r--r--mbox.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mbox.c b/mbox.c
index da692100..3d071dc4 100644
--- a/mbox.c
+++ b/mbox.c
@@ -100,6 +100,9 @@ int mmdf_parse_mailbox (CONTEXT *ctx)
mutt_perror (ctx->path);
return (-1);
}
+#ifdef USE_SIDEBAR
+ ctx->atime = sb.st_atime;
+#endif
ctx->mtime = sb.st_mtime;
ctx->size = sb.st_size;
@@ -251,6 +254,9 @@ int mbox_parse_mailbox (CONTEXT *ctx)
ctx->size = sb.st_size;
ctx->mtime = sb.st_mtime;
+#ifdef USE_SIDEBAR
+ ctx->atime = sb.st_atime;
+#endif
#ifdef NFS_ATTRIBUTE_HACK
if (sb.st_mtime > sb.st_atime)