mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
notmuch new: Don't ignore files with mtime of 0.
I recently discovered that mb2md has the annoying bug of creating files with mtime of 0, and notmuch then promptly ignored them, (thinking that its timestamps initialized to 0 were just as new). We fix notmuch to not exclude messages based on a database timestamp of 0.
This commit is contained in:
parent
091d18c54c
commit
e70f09d900
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ add_files_recursive (notmuch_database_t *notmuch,
|
|||
if (S_ISREG (st->st_mode)) {
|
||||
/* If the file hasn't been modified since the last
|
||||
* add_files, then we need not look at it. */
|
||||
if (st->st_mtime > path_dbtime) {
|
||||
if (path_dbtime == 0 || st->st_mtime > path_dbtime) {
|
||||
state->processed_files++;
|
||||
|
||||
status = notmuch_database_add_message (notmuch, next, &message);
|
||||
|
|
Loading…
Reference in a new issue