From 391058a59cc04c79b09e94a5b8d4352884005cfb Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Mon, 6 Jul 2020 11:52:44 +0300 Subject: [PATCH] BackendOp: add copy_to() method --- melib/src/backends.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/melib/src/backends.rs b/melib/src/backends.rs index 0365db09e..e6e50ba63 100644 --- a/melib/src/backends.rs +++ b/melib/src/backends.rs @@ -437,6 +437,9 @@ pub trait MailBackend: ::std::fmt::Debug + Send + Sync { /// ``` pub trait BackendOp: ::std::fmt::Debug + ::std::marker::Send { fn as_bytes(&mut self) -> ResultFuture>; + fn copy_to(&self, _mailbox_hash: MailboxHash) -> ResultFuture<()> { + Err(MeliError::new("Unimplemented.")) + } fn fetch_flags(&self) -> ResultFuture; fn set_flag(&mut self, flag: Flag, value: bool) -> ResultFuture<()>; fn set_tag(&mut self, tag: String, value: bool) -> ResultFuture<()>;