mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
Schedule resync job when DeleteServerAfter option is set
This commit is contained in:
committed by
link2xt
parent
b4c85c534d
commit
e33f6c1c85
@@ -1063,6 +1063,15 @@ async fn send_mdn(context: &Context, msg: &Message) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub(crate) async fn schedule_resync(context: &Context) {
|
||||
kill_action(context, Action::ResyncFolders).await;
|
||||
add(
|
||||
context,
|
||||
Job::new(Action::ResyncFolders, 0, Params::new(), 0),
|
||||
)
|
||||
.await;
|
||||
}
|
||||
|
||||
/// Creates a job.
|
||||
pub fn create(action: Action, foreign_id: i32, param: Params, delay_seconds: i64) -> Result<Job> {
|
||||
ensure!(
|
||||
|
||||
Reference in New Issue
Block a user