Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2021-04-15 14:27:03 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-05-28 10:17:14 +0300
commit537a766a12b74a3118e8993a5370ae250b96645d (patch)
tree4f32a74cde113fea1b2097690c62528504df8c3b /lib/BackgroundJob
parent8c8d71e37ad87a3303c0dbe09ab39098893c50c1 (diff)
Add option to use multiple configs for mail provisioning
Signed-off-by: Anna Larch <anna@nextcloud.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/BackgroundJob')
-rw-r--r--lib/BackgroundJob/SyncJob.php2
-rw-r--r--lib/BackgroundJob/TrainImportanceClassifierJob.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/BackgroundJob/SyncJob.php b/lib/BackgroundJob/SyncJob.php
index 8d10c549f..b74e47c14 100644
--- a/lib/BackgroundJob/SyncJob.php
+++ b/lib/BackgroundJob/SyncJob.php
@@ -82,7 +82,7 @@ class SyncJob extends TimedJob {
}
$dbAccount = $account->getMailAccount();
- if ($dbAccount->getProvisioned() && $dbAccount->getInboundPassword() === null) {
+ if (!is_null($dbAccount->getProvisioningId()) && $dbAccount->getInboundPassword() === null) {
$this->logger->info("Ignoring cron sync for provisioned account that has no password set yet");
return;
}
diff --git a/lib/BackgroundJob/TrainImportanceClassifierJob.php b/lib/BackgroundJob/TrainImportanceClassifierJob.php
index ca46305d0..abaa11366 100644
--- a/lib/BackgroundJob/TrainImportanceClassifierJob.php
+++ b/lib/BackgroundJob/TrainImportanceClassifierJob.php
@@ -75,7 +75,7 @@ class TrainImportanceClassifierJob extends TimedJob {
}
$dbAccount = $account->getMailAccount();
- if ($dbAccount->getProvisioned() && $dbAccount->getInboundPassword() === null) {
+ if (!is_null($dbAccount->getProvisioningId()) && $dbAccount->getInboundPassword() === null) {
$this->logger->info("Ignoring cron training for provisioned account that has no password set yet");
return;
}