Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(download_msg): do not fail if the message does not exist anymore
Without this fix IMAP loop may get stuck trying to download non-existing message over and over like this: ``` src/imap.rs:372: Logging into IMAP server with LOGIN. src/imap.rs:388: Successfully logged into IMAP server src/scheduler.rs:361: Failed to download message Msg#3467: Message Msg#3467 does not exist. src/scheduler.rs:418: Failed fetch_idle: Failed to download messages: Message Msg#3467 does not exist ``` The whole download operation fails due to attempt to set the state of non-existing message to "failed". Now download of the message will "succeed" if the message does not exist and we don't try to set its state.
- Loading branch information