More descriptive "Unimplemented" messages
parent
6317984136
commit
ded9adde61
|
@ -400,14 +400,14 @@ pub trait MailBackend: ::std::fmt::Debug + Send + Sync {
|
|||
&mut self,
|
||||
_path: String,
|
||||
) -> ResultFuture<(MailboxHash, HashMap<MailboxHash, Mailbox>)> {
|
||||
Err(MeliError::new("Unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
Err(MeliError::new("Creating mailbox is currently unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
}
|
||||
|
||||
fn delete_mailbox(
|
||||
&mut self,
|
||||
_mailbox_hash: MailboxHash,
|
||||
) -> ResultFuture<HashMap<MailboxHash, Mailbox>> {
|
||||
Err(MeliError::new("Unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
Err(MeliError::new("Deleting mailbox is currently unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
}
|
||||
|
||||
fn set_mailbox_subscription(
|
||||
|
@ -415,7 +415,7 @@ pub trait MailBackend: ::std::fmt::Debug + Send + Sync {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_val: bool,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
Err(MeliError::new("Setting mailbox subscription is currently unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
}
|
||||
|
||||
fn rename_mailbox(
|
||||
|
@ -423,7 +423,7 @@ pub trait MailBackend: ::std::fmt::Debug + Send + Sync {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_new_path: String,
|
||||
) -> ResultFuture<Mailbox> {
|
||||
Err(MeliError::new("Unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
Err(MeliError::new("Renaming mailbox is currently unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
}
|
||||
|
||||
fn set_mailbox_permissions(
|
||||
|
@ -431,7 +431,7 @@ pub trait MailBackend: ::std::fmt::Debug + Send + Sync {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_val: MailboxPermissions,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
Err(MeliError::new("Setting mailbox permissions is currently unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
}
|
||||
|
||||
fn search(
|
||||
|
@ -439,7 +439,7 @@ pub trait MailBackend: ::std::fmt::Debug + Send + Sync {
|
|||
_query: crate::search::Query,
|
||||
_mailbox_hash: Option<MailboxHash>,
|
||||
) -> ResultFuture<SmallVec<[EnvelopeHash; 512]>> {
|
||||
Err(MeliError::new("Unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
Err(MeliError::new("Search is currently unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
}
|
||||
|
||||
fn submit(
|
||||
|
|
|
@ -586,14 +586,14 @@ impl MailBackend for JmapType {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_new_path: String,
|
||||
) -> ResultFuture<Mailbox> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Renaming mailbox is currently unimplemented for jmap backend."))
|
||||
}
|
||||
|
||||
fn create_mailbox(
|
||||
&mut self,
|
||||
_path: String,
|
||||
) -> ResultFuture<(MailboxHash, HashMap<MailboxHash, Mailbox>)> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Creating mailbox is currently unimplemented for jmap backend."))
|
||||
}
|
||||
|
||||
fn copy_messages(
|
||||
|
@ -860,7 +860,7 @@ impl MailBackend for JmapType {
|
|||
_env_hashes: EnvelopeHashBatch,
|
||||
_mailbox_hash: MailboxHash,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Deleting messages is currently unimplemented for jmap backend."))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1047,7 +1047,7 @@ impl MailBackend for MaildirType {
|
|||
&mut self,
|
||||
_mailbox_hash: MailboxHash,
|
||||
) -> ResultFuture<HashMap<MailboxHash, Mailbox>> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Deleting messages is currently unimplemented for maildir backend."))
|
||||
}
|
||||
|
||||
fn set_mailbox_subscription(
|
||||
|
@ -1055,7 +1055,7 @@ impl MailBackend for MaildirType {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_val: bool,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Mailbox description is currently unimplemented for maildir backend."))
|
||||
}
|
||||
|
||||
fn rename_mailbox(
|
||||
|
@ -1063,7 +1063,7 @@ impl MailBackend for MaildirType {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_new_path: String,
|
||||
) -> ResultFuture<Mailbox> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Renaming mailbox is currently unimplemented for maildir backend."))
|
||||
}
|
||||
|
||||
fn set_mailbox_permissions(
|
||||
|
@ -1071,7 +1071,7 @@ impl MailBackend for MaildirType {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_val: crate::backends::MailboxPermissions,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Setting mailbox permissions is currently unimplemented for maildir backend."))
|
||||
}
|
||||
|
||||
fn as_any(&self) -> &dyn Any {
|
||||
|
|
|
@ -963,7 +963,7 @@ impl MailBackend for MboxType {
|
|||
}
|
||||
|
||||
fn refresh(&mut self, _mailbox_hash: MailboxHash) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Refreshing is currently unimplemented for mbox backend."))
|
||||
}
|
||||
|
||||
fn watch(&self) -> ResultFuture<()> {
|
||||
|
@ -1154,7 +1154,7 @@ impl MailBackend for MboxType {
|
|||
_destination_mailbox_hash: MailboxHash,
|
||||
_move_: bool,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Copying messages is currently unimplemented for mbox backend"))
|
||||
}
|
||||
|
||||
fn set_flags(
|
||||
|
@ -1163,7 +1163,7 @@ impl MailBackend for MboxType {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_flags: SmallVec<[(std::result::Result<Flag, String>, bool); 8]>,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Settings flags is currently unimplemented for mbox backend"))
|
||||
}
|
||||
|
||||
fn delete_messages(
|
||||
|
@ -1171,7 +1171,7 @@ impl MailBackend for MboxType {
|
|||
_env_hashes: EnvelopeHashBatch,
|
||||
_mailbox_hash: MailboxHash,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Deleting messages is currently unimplemented for mbox backend"))
|
||||
}
|
||||
|
||||
fn save(
|
||||
|
@ -1180,7 +1180,7 @@ impl MailBackend for MboxType {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_flags: Option<Flag>,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Saving messages is currently unimplemented for mbox backend"))
|
||||
}
|
||||
|
||||
fn as_any(&self) -> &dyn Any {
|
||||
|
|
|
@ -367,7 +367,7 @@ impl MailBackend for NntpType {
|
|||
}
|
||||
|
||||
fn watch(&self) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented.").set_kind(ErrorKind::NotImplemented))
|
||||
Err(MeliError::new("Watching is currently uniplemented for nntp backend").set_kind(ErrorKind::NotImplemented))
|
||||
}
|
||||
|
||||
fn operation(&self, env_hash: EnvelopeHash) -> Result<Box<dyn BackendOp>> {
|
||||
|
@ -440,14 +440,14 @@ impl MailBackend for NntpType {
|
|||
&mut self,
|
||||
_path: String,
|
||||
) -> ResultFuture<(MailboxHash, HashMap<MailboxHash, Mailbox>)> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Creating mailbox is currently unimplemented for nntp backend."))
|
||||
}
|
||||
|
||||
fn delete_mailbox(
|
||||
&mut self,
|
||||
_mailbox_hash: MailboxHash,
|
||||
) -> ResultFuture<HashMap<MailboxHash, Mailbox>> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Deleting a mailbox is currently unimplemented for nntp backend."))
|
||||
}
|
||||
|
||||
fn set_mailbox_subscription(
|
||||
|
@ -455,7 +455,7 @@ impl MailBackend for NntpType {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_new_val: bool,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Setting mailbox description is currently unimplemented for nntp backend."))
|
||||
}
|
||||
|
||||
fn rename_mailbox(
|
||||
|
@ -463,7 +463,7 @@ impl MailBackend for NntpType {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_new_path: String,
|
||||
) -> ResultFuture<Mailbox> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Renaming mailbox is currently unimplemented for nntp backend."))
|
||||
}
|
||||
|
||||
fn set_mailbox_permissions(
|
||||
|
@ -471,7 +471,7 @@ impl MailBackend for NntpType {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_val: crate::backends::MailboxPermissions,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Setting mailbox permissions is currently unimplemented for nntp backend."))
|
||||
}
|
||||
|
||||
fn search(
|
||||
|
@ -479,7 +479,7 @@ impl MailBackend for NntpType {
|
|||
_query: crate::search::Query,
|
||||
_mailbox_hash: Option<MailboxHash>,
|
||||
) -> ResultFuture<SmallVec<[EnvelopeHash; 512]>> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Searching is currently unimplemented for nntp backend."))
|
||||
}
|
||||
|
||||
fn submit(
|
||||
|
|
|
@ -754,7 +754,7 @@ impl MailBackend for NotmuchDb {
|
|||
_destination_mailbox_hash: MailboxHash,
|
||||
_move_: bool,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Copying messages is currently unimplemented for notmuch backend"))
|
||||
}
|
||||
|
||||
fn set_flags(
|
||||
|
@ -874,7 +874,7 @@ impl MailBackend for NotmuchDb {
|
|||
_env_hashes: EnvelopeHashBatch,
|
||||
_mailbox_hash: MailboxHash,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Deleting messages is currently unimplemented for notmuch backend"))
|
||||
}
|
||||
|
||||
fn search(
|
||||
|
|
|
@ -493,7 +493,7 @@ pub trait MailListingTrait: ListingTrait {
|
|||
context
|
||||
.replies
|
||||
.push_back(UIEvent::StatusEvent(StatusEvent::DisplayMessage(
|
||||
"Unimplemented.".into(),
|
||||
"Copying to another account is currently unimplemented".into(),
|
||||
)));
|
||||
}
|
||||
ListingAction::MoveTo(ref mailbox_path) => {
|
||||
|
@ -627,7 +627,7 @@ pub trait MailListingTrait: ListingTrait {
|
|||
context
|
||||
.replies
|
||||
.push_back(UIEvent::StatusEvent(StatusEvent::DisplayMessage(
|
||||
"Unimplemented.".into(),
|
||||
"Moving to another account is currently unimplemented".into(),
|
||||
)));
|
||||
}
|
||||
_ => unreachable!(),
|
||||
|
|
|
@ -201,13 +201,13 @@ impl MailBackend for PluginBackend {
|
|||
_mailbox_hash: MailboxHash,
|
||||
_flags: Option<Flag>,
|
||||
) -> ResultFuture<()> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Saving is currently unimplemented for plugins"))
|
||||
}
|
||||
fn create_mailbox(
|
||||
&mut self,
|
||||
_name: String,
|
||||
) -> ResultFuture<(MailboxHash, HashMap<MailboxHash, Mailbox>)> {
|
||||
Err(MeliError::new("Unimplemented."))
|
||||
Err(MeliError::new("Creating a mailbox is currently unimplemented for plugins"))
|
||||
}
|
||||
fn collection(&self) -> melib::Collection {
|
||||
self.collection.clone()
|
||||
|
|
Loading…
Reference in New Issue