]> git.llucax.com Git - software/mutt-debian.git/blob - debian/patches/mutt-patched/sidebar-compat-apply.debian
new patch from upstream to fix the atime issue
[software/mutt-debian.git] / debian / patches / mutt-patched / sidebar-compat-apply.debian
1 # vim:ft=diff:
2 [continued from sidebar-compat-revert]
3
4 After having applied the sidebar patch, we now re-apply the relevant part of
5 the maildir-mtime patch. The hunk is considerably shorter as we are always
6 counting messages; the if..break part has been dropped.
7 --- a/buffy.c
8 +++ b/buffy.c
9 @@ -445,6 +445,11 @@
10             tmp->has_new = tmp->new = 1;
11              tmp->msgcount++;
12              tmp->msg_unread++;
13 +           snprintf (path, sizeof (path), "%s/new/%s", tmp->path, de->d_name);
14 +           if (!stat (path, &smd) && smd.st_mtime > tmp->mtime)
15 +           {
16 +             tmp->mtime = smd.st_mtime;
17 +           }
18           }
19         }
20          if(tmp->msg_unread)
21 --- a/buffy.h
22 +++ b/buffy.h
23 @@ -26,6 +26,7 @@
24    off_t size;
25    struct buffy_t *next;
26    struct buffy_t *prev;
27 +  time_t mtime;                        /* for maildirs...time of newest entry */
28    short new;                   /* mailbox has new mail */
29    short has_new;               /* set it new if new and not read */
30    int msgcount;                        /* total number of messages */