1 parent
96a32ea8fb
commit
a643e7e3ab
106 files changed
+2223
-4669
No files matched your search
+4
-6
@@ -1,17 +1,15 @@
|
||||
use std::fmt;
|
||||
|
||||
/// Errors that can occur during IMAP operations.
|
||||
#[derive(Debug)]
|
||||
pub enum ImapError {
|
||||
/// Could not connect to the IMAP server.
|
||||
ConnectionFailed(String),
|
||||
/// The server rejected our credentials.
|
||||
|
||||
AuthenticationFailed,
|
||||
/// The requested folder does not exist.
|
||||
|
||||
FolderNotFound(String),
|
||||
/// The requested message UID was not found in the given folder.
|
||||
|
||||
MessageNotFound { uid: u32, folder: String },
|
||||
/// A low-level IMAP protocol error.
|
||||
|
||||
ProtocolError(String),
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user