feat: Improve account setup UI and add post-download email filtering

This commit is contained in:
rustmailer
2026-06-30 09:42:03 +08:00
parent 5fe45795b9
commit 2da42134d0
42 changed files with 3265 additions and 1670 deletions
+3 -1
View File
@@ -22,7 +22,7 @@ use serde::{Deserialize, Serialize};
use crate::{
account::{
entity::ImapConfig,
migration::{AccountModel, AccountType, QuotaWindow},
migration::{AccountModel, AccountType, ArchiveRules, QuotaWindow},
since::{DateSince, RelativeDate},
},
users::UserModel,
@@ -58,6 +58,7 @@ pub struct AccountResp {
pub imap_quota_window: Option<QuotaWindow>,
pub auto_download_new_mailboxes: Option<bool>,
pub download_schedule: Option<String>,
pub archive_rules: Option<ArchiveRules>,
pub deleting: bool,
}
@@ -96,6 +97,7 @@ impl AccountResp {
imap_quota_window: account.imap_quota_window,
auto_download_new_mailboxes: account.auto_download_new_mailboxes,
download_schedule: account.download_schedule,
archive_rules: account.archive_rules,
deleting: account.deleting,
}
}