X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=buffy.c;h=abfc91390a4fe0ed520b85262f21dba7ee434ea4;hp=93a5716fed80c0747645864c878367bcdfc25c02;hb=004f8d226cb42f93c0025b0ed3a6edf87d7bb8a0;hpb=f404a0ca916be07049af51a3022baaaaab94def6 diff --git a/buffy.c b/buffy.c index 93a5716..abfc913 100644 --- a/buffy.c +++ b/buffy.c @@ -411,38 +411,16 @@ int mutt_buffy_check (int force) (!(p = strstr (de->d_name, ":2,")) || !strchr (p + 3, 'T'))) { /* one new and undeleted message is enough */ - BuffyCount++; - tmp->has_new = tmp->new = 1; - tmp->msgcount++; - tmp->msg_unread++; + if (tmp->new != 1) + { + BuffyCount++; + tmp->has_new = tmp->new = 1; + } + tmp->msgcount++; + tmp->msg_unread++; } } closedir (dirp); -#if 0 - /* I commented this out because it led to an infite "New mail in ..." loop, - * and when looking at the code, the check seems to be overly eager. - * -- ak - */ - snprintf (path, sizeof (path), "%s/cur", tmp->path); - 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++; - tmp->has_new = tmp->new = 1; - tmp->msgcount++; - } - } - closedir (dirp); -#endif break; case M_MH: