diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php index 014360a603..9ddf90f812 100644 --- a/lib/Service/AccountService.php +++ b/lib/Service/AccountService.php @@ -25,6 +25,7 @@ namespace OCA\Mail\Service; use OCA\Mail\Account; +use OCA\Mail\BackgroundJob\PreviewEnhancementProcessingJob; use OCA\Mail\BackgroundJob\SyncJob; use OCA\Mail\BackgroundJob\TrainImportanceClassifierJob; use OCA\Mail\Db\MailAccount; @@ -148,6 +149,7 @@ public function save(MailAccount $newAccount): MailAccount { // Insert background jobs for this account $this->jobList->add(SyncJob::class, ['accountId' => $newAccount->getId()]); $this->jobList->add(TrainImportanceClassifierJob::class, ['accountId' => $newAccount->getId()]); + $this->jobList->add(PreviewEnhancementProcessingJob::class, ['accountId' => $newAccount->getId()]); return $newAccount; }