+
+ if (mx_is_maildir (tmp->path))
+ {
+ struct stat st2;
+ char md[_POSIX_PATH_MAX];
+
+ snprintf (md, sizeof (md), "%s/new", tmp->path);
+ if (stat (md, &s) < 0)
+ s.st_mtime = 0;
+ snprintf (md, sizeof (md), "%s/cur", tmp->path);
+ if (stat (md, &st2) < 0)
+ st2.st_mtime = 0;
+ if (st2.st_mtime > s.st_mtime)
+ s.st_mtime = st2.st_mtime;
+ }