projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
and even less very old hacks.
[apps/madmutt.git]
/
mbox.c
diff --git
a/mbox.c
b/mbox.c
index
7207ea7
..
c3dc0fd
100644
(file)
--- a/
mbox.c
+++ b/
mbox.c
@@
-25,10
+25,7
@@
#include "sort.h"
#include "thread.h"
#include "copy.h"
#include "sort.h"
#include "thread.h"
#include "copy.h"
-
-#ifdef USE_COMPRESSED
#include "compress.h"
#include "compress.h"
-#endif
#include "lib/debug.h"
#include "lib/debug.h"
@@
-100,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);
@@
-111,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);
@@
-236,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);
@@
-249,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;
@@
-888,10
+861,8
@@
int mbox_close_mailbox (CONTEXT * ctx)
{
mx_unlock_file (ctx->path, fileno (ctx->fp), 1);
{
mx_unlock_file (ctx->path, fileno (ctx->fp), 1);
-#ifdef USE_COMPRESSED
if (ctx->compressinfo)
mutt_slow_close_compressed (ctx);
if (ctx->compressinfo)
mutt_slow_close_compressed (ctx);
-#endif
mutt_unblock_signals ();
mx_fastclose_mailbox (ctx);
mutt_unblock_signals ();
mx_fastclose_mailbox (ctx);
@@
-1113,10
+1084,8
@@
int mbox_is_magic (const char* path, struct stat* st) {
return (-1); /* fopen failed */
}
return (-1); /* fopen failed */
}
-#ifdef USE_COMPRESSED
if (magic == -1 && mutt_can_read_compressed (path))
return (M_COMPRESSED);
if (magic == -1 && mutt_can_read_compressed (path))
return (M_COMPRESSED);
-#endif
return (magic);
}
return (magic);
}