mirror of
https://github.com/chatmail/core.git
synced 2026-04-25 01:16:29 +03:00
Delete messages to the Trash folder for Gmail by default (#3957)
Gmail archives messages marked as `\Deleted` by default if those messages aren't in the Trash. But if move them to the Trash instead, they will be auto-deleted in 30 days.
This commit is contained in:
@@ -138,6 +138,16 @@ pub struct Provider {
|
||||
|
||||
/// Type of OAuth 2 authorization if provider supports it.
|
||||
pub oauth2_authorizer: Option<Oauth2Authorizer>,
|
||||
|
||||
/// Options with good defaults.
|
||||
pub opt: ProviderOptions,
|
||||
}
|
||||
|
||||
/// Provider options with good defaults.
|
||||
#[derive(Debug, Default, PartialEq, Eq)]
|
||||
pub struct ProviderOptions {
|
||||
/// Move messages to the Trash folder instead of marking them "\Deleted".
|
||||
pub delete_to_trash: bool,
|
||||
}
|
||||
|
||||
/// Get resolver to query MX records.
|
||||
|
||||
Reference in New Issue
Block a user