deltachat::imap

Function target_folder_cfg

source
pub async fn target_folder_cfg(
    context: &Context,
    folder: &str,
    folder_meaning: FolderMeaning,
    headers: &[MailHeader<'_>],
) -> Result<Option<Config>>
Expand description

Returns ConfiguredInboxFolder, ConfiguredMvboxFolder or ConfiguredSentboxFolder if the message needs to be moved from folder. Otherwise returns None.