ash: "you have mail" should ignore first change in mtime
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
2384162f64
commit
4cd99e7c6c
@ -10073,8 +10073,9 @@ chkmail(void)
|
||||
new_hash += (unsigned)statb.st_mtime;
|
||||
}
|
||||
if (!mail_var_path_changed && mailtime_hash != new_hash) {
|
||||
if (mailtime_hash != 0)
|
||||
out2str("you have mail\n");
|
||||
mailtime_hash = new_hash;
|
||||
out2str("you have mail\n");
|
||||
}
|
||||
mail_var_path_changed = 0;
|
||||
popstackmark(&smark);
|
||||
|
Loading…
Reference in New Issue
Block a user