Use modified time instead of created time (#32)

Co-authored-by: Rudi Horn <dyn-git@rudi-horn.de>
This commit is contained in:
Rudi Horn
2022-11-20 21:08:44 +01:00
committed by GitHub
co-authored by Rudi Horn
parent 26bca49aac
commit c542f8a0db
+1 -1
View File
@@ -197,7 +197,7 @@ impl Iterator for MessageIterator {
if let Some(name) = path.file_name().and_then(|name| name.to_str()) {
if !name.starts_with('.') {
let internal_date =
match fs::metadata(&path).and_then(|m| m.created()).and_then(|d| {
match fs::metadata(&path).and_then(|m| m.modified()).and_then(|d| {
d.duration_since(std::time::UNIX_EPOCH)
.map(|d| d.as_secs())
.map_err(|e| {