mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
4dad82591b
PR: 228387 Submitted by: maintainer
53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
--- PATCHES.orig 2018-05-19 21:17:16 UTC
|
|
+++ PATCHES
|
|
@@ -0,0 +1 @@
|
|
+patch-1.5.7.ust.maildir-mtime.2
|
|
--- browser.c.orig 2018-05-19 20:33:53 UTC
|
|
+++ browser.c
|
|
@@ -32,6 +32,7 @@
|
|
#ifdef USE_IMAP
|
|
#include "imap.h"
|
|
#endif
|
|
+#include "mx.h"
|
|
|
|
#include <stdlib.h>
|
|
#include <dirent.h>
|
|
@@ -439,6 +439,21 @@
|
|
menu->data = state->entry;
|
|
}
|
|
|
|
+static void check_maildir_times (BUFFY *buf, struct stat *st)
|
|
+{
|
|
+ char buffer[_POSIX_PATH_MAX + SHORT_STRING];
|
|
+ struct stat s;
|
|
+
|
|
+ if(!buf || buf->magic != MUTT_MAILDIR)
|
|
+ return;
|
|
+
|
|
+ snprintf (buffer, sizeof (buffer), "%s/tmp", buf->path);
|
|
+ if (lstat (buffer, &s) != 0)
|
|
+ return;
|
|
+
|
|
+ st->st_mtime = s.st_mtime;
|
|
+}
|
|
+
|
|
static int examine_directory (MUTTMENU *menu, struct browser_state *state,
|
|
char *d, const char *prefix)
|
|
{
|
|
@@ -504,6 +504,7 @@
|
|
tmp = Incoming;
|
|
while (tmp && mutt_strcmp (buffer, tmp->path))
|
|
tmp = tmp->next;
|
|
+ check_maildir_times (tmp, &s);
|
|
if (tmp && Context &&
|
|
!mutt_strcmp (tmp->realpath, Context->realpath))
|
|
{
|
|
@@ -578,6 +578,7 @@
|
|
s.st_mtime = st2.st_mtime;
|
|
}
|
|
|
|
+ check_maildir_times (tmp, &s);
|
|
add_folder (menu, state, buffer, &s, tmp);
|
|
}
|
|
while ((tmp = tmp->next));
|