]> granicus.if.org Git - neomutt/commitdiff
maildir buffy: Don't consider "trashed" new messages new. Fixes #412.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 10 Oct 2001 10:34:11 +0000 (10:34 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 10 Oct 2001 10:34:11 +0000 (10:34 +0000)
buffy.c

diff --git a/buffy.c b/buffy.c
index 7d1a8fe1a593d6a4c70e846544b53121fa5db76c..432ff81ab731544d432e3f957055e54e174da961 100644 (file)
--- 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;