summaryrefslogtreecommitdiff
path: root/mail/mutt-devel/files/extra-patch-maildir-mtime-nntp
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mutt-devel/files/extra-patch-maildir-mtime-nntp')
-rw-r--r--mail/mutt-devel/files/extra-patch-maildir-mtime-nntp113
1 files changed, 78 insertions, 35 deletions
diff --git a/mail/mutt-devel/files/extra-patch-maildir-mtime-nntp b/mail/mutt-devel/files/extra-patch-maildir-mtime-nntp
index 3f7c00659da3..68a5a0911e3c 100644
--- a/mail/mutt-devel/files/extra-patch-maildir-mtime-nntp
+++ b/mail/mutt-devel/files/extra-patch-maildir-mtime-nntp
@@ -1,9 +1,9 @@
--- PATCHES Dec 2002 17:44:54 -0000 3.6
+++ PATCHES Feb 2004 13:19:42 -0000
@@ -0,0 +1 @@
-+patch-1.5.6.dw.maildir-mtime.1
---- browser.c.orig Mon Aug 2 18:54:46 2004
-+++ browser.c Mon Aug 2 19:00:01 2004
++patch-1.5.7.ust.maildir-mtime.1
+--- browser.c.orig Sat Feb 5 23:45:00 2005
++++ browser.c Sat Feb 5 23:47:50 2005
@@ -30,6 +30,7 @@
#ifdef USE_NNTP
#include "nntp.h"
@@ -58,44 +58,44 @@
{
if ((data = (NNTP_DATA *) tmp->data) != NULL && (data->new ||
(data->subscribed && (!option (OPTSHOWONLYUNREAD) || data->unread))))
-- add_folder (menu, state, data->group, NULL, data, data->new);
-+ add_folder (menu, state, data->group, NULL, data, tmp);
+- add_folder (menu, state, data->group, NULL, data, data->new);
++ add_folder (menu, state, data->group, NULL, data, tmp);
}
}
else
@@ -608,21 +614,21 @@
#ifdef USE_IMAP
- if (mx_is_imap (tmp->path))
- {
-- add_folder (menu, state, tmp->path, NULL, NULL, tmp->new);
-+ add_folder (menu, state, tmp->path, NULL, NULL, tmp);
- continue;
- }
+ if (mx_is_imap (tmp->path))
+ {
+- add_folder (menu, state, tmp->path, NULL, NULL, tmp->new);
++ add_folder (menu, state, tmp->path, NULL, NULL, tmp);
+ continue;
+ }
#endif
#ifdef USE_POP
- if (mx_is_pop (tmp->path))
- {
-- add_folder (menu, state, tmp->path, NULL, NULL, tmp->new);
-+ add_folder (menu, state, tmp->path, NULL, NULL, tmp);
- continue;
- }
+ if (mx_is_pop (tmp->path))
+ {
+- add_folder (menu, state, tmp->path, NULL, NULL, tmp->new);
++ add_folder (menu, state, tmp->path, NULL, NULL, tmp);
+ continue;
+ }
#endif
#ifdef USE_NNTP
- if (mx_is_nntp (tmp->path))
- {
-- add_folder (menu, state, tmp->path, NULL, NULL, tmp->new);
-+ add_folder (menu, state, tmp->path, NULL, NULL, tmp);
- continue;
- }
+ if (mx_is_nntp (tmp->path))
+ {
+- add_folder (menu, state, tmp->path, NULL, NULL, tmp->new);
++ add_folder (menu, state, tmp->path, NULL, NULL, tmp);
+ continue;
+ }
#endif
@@ -636,7 +642,7 @@
- strfcpy (buffer, NONULL(tmp->path), sizeof (buffer));
- mutt_pretty_mailbox (buffer);
+ strfcpy (buffer, NONULL(tmp->path), sizeof (buffer));
+ mutt_pretty_mailbox (buffer);
-- add_folder (menu, state, buffer, &s, NULL, tmp->new);
-+ add_folder (menu, state, buffer, &s, NULL, tmp);
- }
- while ((tmp = tmp->next));
+- add_folder (menu, state, buffer, &s, NULL, tmp->new);
++ add_folder (menu, state, buffer, &s, NULL, tmp);
+ }
+ while ((tmp = tmp->next));
}
@@ -1555,7 +1561,7 @@
if (regexec (rx, nd->group, 0, NULL, 0) == 0)
@@ -106,21 +106,49 @@
}
}
}
---- buffy.c Feb 2004 17:50:43 -0000 3.9
-+++ buffy.c Feb 2004 13:19:42 -0000
-@@ -229,2 +229,3 @@ int mutt_parse_mailboxes (BUFFER *path,
+--- buffy.c.orig Sat Oct 30 23:40:07 2004
++++ buffy.c Sat Feb 5 13:57:07 2005
+@@ -227,6 +227,7 @@
+ (*tmp)->new = 0;
+ (*tmp)->notified = 1;
(*tmp)->newly_created = 0;
+ (*tmp)->mtime = 0;
-@@ -260,2 +261,3 @@ int mutt_buffy_check (int force)
+ #ifdef BUFFY_SIZE
+ /* for buffy_size, it is important that if the folder is new (tested by
+@@ -258,6 +259,7 @@
+ {
+ BUFFY *tmp;
struct stat sb;
+ struct stat smd;
struct dirent *de;
-@@ -299,2 +301,3 @@ int mutt_buffy_check (int force)
+ DIR *dirp;
+ char path[_POSIX_PATH_MAX];
+@@ -297,6 +299,7 @@
+ for (tmp = Incoming; tmp; tmp = tmp->next)
+ {
tmp->new = 0;
+ tmp->mtime = 0;
-@@ -383,6 +386,13 @@ int mutt_buffy_check (int force)
+ #ifdef USE_IMAP
+ if (mx_is_imap (tmp->path))
+@@ -370,21 +373,31 @@
+ case M_MAILDIR:
+
+ snprintf (path, sizeof (path), "%s/new", tmp->path);
++ stat (path, &smd);
++ tmp->mtime = smd.st_mtime;
+ if ((dirp = opendir (path)) == NULL)
+ {
+ tmp->magic = 0;
+ break;
+ }
++
+ while ((de = readdir (dirp)) != NULL)
+ {
+ char *p;
+ if (*de->d_name != '.' &&
+ (!(p = strstr (de->d_name, ":2,")) || !strchr (p + 3, 'T')))
{
- /* one new and undeleted message is enough */
- BuffyCount++;
@@ -138,6 +166,21 @@
+ tmp->mtime = smd.st_mtime;
+ }
}
+ }
+ closedir (dirp);
+@@ -414,6 +427,12 @@
+ #ifdef BUFFY_SIZE
+ else if (Context && Context->path)
+ tmp->size = (long) sb.st_size; /* update the size */
++#else
++ else if(tmp->magic == M_MAILDIR) {
++ snprintf (path, sizeof (path), "%s/new", tmp->path);
++ stat (path, &smd);
++ tmp->mtime = smd.st_mtime;
++ }
+ #endif
+
+ if (!tmp->new)
--- buffy.h Dec 2002 11:19:39 -0000 3.2
+++ buffy.h Feb 2004 13:19:42 -0000
@@ -29,2 +29,3 @@ typedef struct buffy_t