mirror of https://github.com/djcb/mu.git
parent
ab96211799
commit
fabeb4a89a
|
@ -158,17 +158,14 @@ Indexer::Private::handler(const std::string& fullpath, struct stat* statbuf,
|
||||||
// is up-to-date (this is _not_ always true; hence we call it
|
// is up-to-date (this is _not_ always true; hence we call it
|
||||||
// lazy-mode); only for actual message dirs, since the dir
|
// lazy-mode); only for actual message dirs, since the dir
|
||||||
// tstamps may not bubble up.
|
// tstamps may not bubble up.
|
||||||
if (conf_.lazy_check) {
|
dirstamp_ = store_.dirstamp(fullpath);
|
||||||
dirstamp_ = store_.dirstamp(fullpath);
|
if (conf_.lazy_check && dirstamp_ >= statbuf->st_ctime &&
|
||||||
if (dirstamp_ >= statbuf->st_ctime &&
|
|
||||||
htype == Scanner::HandleType::EnterNewCur) {
|
htype == Scanner::HandleType::EnterNewCur) {
|
||||||
mu_debug("skip {} (seems up-to-date: {:%FT%T} >= {:%FT%T})",
|
mu_debug("skip {} (seems up-to-date: {:%FT%T} >= {:%FT%T})",
|
||||||
fullpath, mu_time(dirstamp_), mu_time(statbuf->st_ctime));
|
fullpath, mu_time(dirstamp_), mu_time(statbuf->st_ctime));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
dirstamp_ = 0;
|
|
||||||
|
|
||||||
// don't index dirs with '.noindex'
|
// don't index dirs with '.noindex'
|
||||||
auto noindex = ::access((fullpath + "/.noindex").c_str(), F_OK) == 0;
|
auto noindex = ::access((fullpath + "/.noindex").c_str(), F_OK) == 0;
|
||||||
if (noindex) {
|
if (noindex) {
|
||||||
|
|
Loading…
Reference in New Issue