diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2001-10-10 10:34:11 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2001-10-10 10:34:11 +0000 |
commit | 9c2430408e323b8bd60df8c364c94112f498a37c (patch) | |
tree | 576b5d32ab963faeb2c9a3e63c1021b01bc36a33 /buffy.c | |
parent | 147ede3ed961b643abb7535e7001754f29ff6312 (diff) |
maildir buffy: Don't consider "trashed" new messages new. Fixes #412.
Diffstat (limited to 'buffy.c')
-rw-r--r-- | buffy.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |