Skip to content

Commit

Permalink
Fix reindexing fails on sending email
Browse files Browse the repository at this point in the history
Actually it didn't fail, just appeared to/logged that it did, as well as
not closing the compose modal.

Closes #72.
  • Loading branch information
OJFord committed Mar 27, 2024
1 parent a35b00a commit 5feff09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notmuch-more/src/smtp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl Smtp {
Ok(_) => {
println!("[TRACE] Renamed message {}, reindexing", message.id());
match db.index_file(&path, None) {
Err(NotmuchError(notmuch::Status::DuplicateMessageID)) => {
Ok(_) | Err(NotmuchError(notmuch::Status::DuplicateMessageID)) => {
println!("[TRACE] New path indexed");
message.reindex(index_opts)?;
println!("[TRACE] Message reindexed");
Expand Down

0 comments on commit 5feff09

Please sign in to comment.