From: ak1 Date: Sun, 27 Feb 2005 21:41:11 +0000 (+0000) Subject: Andreas Krennmair: X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=004f8d226cb42f93c0025b0ed3a6edf87d7bb8a0 Andreas Krennmair: totally remove the check in cur/ in the maildir code (mutt did the same thing). git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@110 e385b8ad-14ed-0310-8656-cc95a2468c6d --- diff --git a/buffy.c b/buffy.c index 34010de..abfc913 100644 --- a/buffy.c +++ b/buffy.c @@ -421,36 +421,6 @@ int mutt_buffy_check (int force) } } closedir (dirp); -#if 1 - /* 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 */ -#if 0 - BuffyCount++; - /* we're checking for read and not new mail; - * seems like copy'n'paste error - */ - tmp->has_new = tmp->new = 1; -#endif - tmp->msgcount++; - } - } - closedir (dirp); -#endif break; case M_MH: