Skip to content

Commit

Permalink
fix: process duplicate files
Browse files Browse the repository at this point in the history
Closes #98
michaeladler committed Oct 1, 2024
1 parent ee8ecd3 commit c3adb3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/repo.rs
Original file line number Diff line number Diff line change
@@ -11,7 +11,9 @@ impl MailRepo for notmuch::Database {
let messages = nm_query.search_messages()?;
let mut result: Vec<PathBuf> = Vec::new();
for msg in messages {
result.push(msg.filename().to_path_buf());
for fname in msg.filenames() {
result.push(fname);
}
}
Ok(result)
}

0 comments on commit c3adb3c

Please sign in to comment.