projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move rfc822 related types into lib-mime/mime-types.h out of mutt.h.
[apps/madmutt.git]
/
mbox.c
diff --git
a/mbox.c
b/mbox.c
index
cd171b3
..
c3dc0fd
100644
(file)
--- a/
mbox.c
+++ b/
mbox.c
@@
-97,10
+97,6
@@
static int mmdf_parse_mailbox (CONTEXT * ctx)
HEADER *hdr;
struct stat sb;
HEADER *hdr;
struct stat sb;
-#ifdef NFS_ATTRIBUTE_HACK
- struct utimbuf newtime;
-#endif
-
if (stat (ctx->path, &sb) == -1) {
mutt_perror (ctx->path);
return (-1);
if (stat (ctx->path, &sb) == -1) {
mutt_perror (ctx->path);
return (-1);
@@
-108,14
+104,6
@@
static int mmdf_parse_mailbox (CONTEXT * ctx)
ctx->mtime = sb.st_mtime;
ctx->size = sb.st_size;
ctx->mtime = sb.st_mtime;
ctx->size = sb.st_size;
-#ifdef NFS_ATTRIBUTE_HACK
- if (sb.st_mtime > sb.st_atime) {
- newtime.modtime = sb.st_mtime;
- newtime.actime = time (NULL);
- utime (ctx->path, &newtime);
- }
-#endif
-
/* precompute the local timezone to speed up calculation of the
received time */
tz = mutt_local_tz (0);
/* precompute the local timezone to speed up calculation of the
received time */
tz = mutt_local_tz (0);
@@
-233,10
+221,6
@@
static int mbox_parse_mailbox (CONTEXT * ctx)
int count = 0, lines = 0;
off_t loc;
int count = 0, lines = 0;
off_t loc;
-#ifdef NFS_ATTRIBUTE_HACK
- struct utimbuf newtime;
-#endif
-
/* Save information about the folder at the time we opened it. */
if (stat (ctx->path, &sb) == -1) {
mutt_perror (ctx->path);
/* Save information about the folder at the time we opened it. */
if (stat (ctx->path, &sb) == -1) {
mutt_perror (ctx->path);
@@
-246,14
+230,6
@@
static int mbox_parse_mailbox (CONTEXT * ctx)
ctx->size = sb.st_size;
ctx->mtime = sb.st_mtime;
ctx->size = sb.st_size;
ctx->mtime = sb.st_mtime;
-#ifdef NFS_ATTRIBUTE_HACK
- if (sb.st_mtime > sb.st_atime) {
- newtime.modtime = sb.st_mtime;
- newtime.actime = time (NULL);
- utime (ctx->path, &newtime);
- }
-#endif
-
if (!ctx->readonly)
ctx->readonly = access (ctx->path, W_OK) ? 1 : 0;
if (!ctx->readonly)
ctx->readonly = access (ctx->path, W_OK) ? 1 : 0;