Trait DeleteMessages

Source
pub trait DeleteMessages: Send + Sync {
    // Required method
    fn delete_messages<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        folder: &'life1 str,
        id: &'life2 Id,
    ) -> Pin<Box<dyn Future<Output = AnyResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Feature to delete message(s).

Required Methods§

Source

fn delete_messages<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, folder: &'life1 str, id: &'life2 Id, ) -> Pin<Box<dyn Future<Output = AnyResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Delete messages from the given folder matching the given envelope id(s).

This function should not definitely delete messages. Instead, if the message is in the Trash folder or if the delete message style matches the flag-based one, it should add the Deleted. Otherwise it should move the message to the Trash folder. Only ExpungeFolder can definitely delete messages.

Implementors§