Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sysinfo.workspace = true
num_cpus.workspace = true
rand.workspace = true
encoding_rs.workspace = true
async-imap = { git = "https://github.com/rustmailer/async-imap.git", branch = "main", default-features = false, features = [
async-imap = { git = "https://github.com/gabeosx/async-imap.git", rev = "905a005234f89d046c2f439cee27daf947917b41", default-features = false, features = [
"runtime-tokio",
"compress",
] }
Expand Down
5 changes: 5 additions & 0 deletions crates/core/src/account/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ use crate::{
id,
oauth2::token::OAuth2AccessToken,
raise_error,
settings::dir::DATA_DIR_MANAGER,
store::tantivy::{attachment::ATTACHMENT_MANAGER, envelope::ENVELOPE_MANAGER},
users::{payload::UserUpdateRequest, role::DEFAULT_ACCOUNT_MANAGER_ROLE_ID, UserModel},
utc_now,
Expand Down Expand Up @@ -498,6 +499,10 @@ impl Account {
}
OAuth2AccessToken::try_delete(account.id)?;
UserModel::cleanup_account(account.id)?;
crate::imap::uidonly_acquisition::cleanup_uidonly_account_state(
&DATA_DIR_MANAGER.storage_dir.join("uidonly-acquisition"),
account.id,
)?;
MailBox::clean(account.id)?;
ENVELOPE_MANAGER
.delete_account_envelopes(account.id)
Expand Down
Loading