Skip to content

Commit

Permalink
Interpret DUPLICATE_MESSAGE_ID as OK status
Browse files Browse the repository at this point in the history
See #40
  • Loading branch information
elizagamedev committed May 5, 2022
1 parent 330b4b4 commit bf35302
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ notmuch_enum! {
impl notmuch_status_t {
pub fn is_ok(self) -> bool {
match self {
notmuch_status_t::NOTMUCH_STATUS_SUCCESS => true,
notmuch_status_t::NOTMUCH_STATUS_SUCCESS
| notmuch_status_t::NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID => true,
_ => false,
}
}
Expand Down

0 comments on commit bf35302

Please sign in to comment.