summaryrefslogtreecommitdiffstats
path: root/buffy.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-10-10 10:34:11 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-10-10 10:34:11 +0000
commit9c2430408e323b8bd60df8c364c94112f498a37c (patch)
tree576b5d32ab963faeb2c9a3e63c1021b01bc36a33 /buffy.c
parent147ede3ed961b643abb7535e7001754f29ff6312 (diff)
maildir buffy: Don't consider "trashed" new messages new. Fixes #412.
Diffstat (limited to 'buffy.c')
-rw-r--r--buffy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/buffy.c b/buffy.c
index 7d1a8fe1..432ff81a 100644
--- a/buffy.c
+++ b/buffy.c
@@ -345,9 +345,11 @@ int mutt_buffy_check (int force)
}
while ((de = readdir (dirp)) != NULL)
{
- if (*de->d_name != '.')
+ char *p;
+ if (*de->d_name != '.' &&
+ (!(p = strstr (de->d_name, ":2,")) || !strchr (p + 3, 'T')))
{
- /* one new message is enough */
+ /* one new and undeleted message is enough */
BuffyCount++;
tmp->new = 1;
break;