Commit c68a05bf authored by Oana-Eliza Alexa's avatar Oana-Eliza Alexa
Browse files

use utils

1 merge request!75Draft: Resolve "Redesign Mail"
Pipeline #32365 failed with stages
in 17 seconds
Showing with 1 addition and 12 deletions
+1 -12
...@@ -56,7 +56,7 @@ class Mail implements EndpointInterface ...@@ -56,7 +56,7 @@ class Mail implements EndpointInterface
public function processMailTasks (array $tasks): array public function processMailTasks (array $tasks): array
{ {
$result = []; $result = [];
$fdTasksConf = $this->getMailObjectConfiguration(); $fdTasksConf = MailUtils::getMailObjectConfiguration($this->gateway);
$maxMailsConfig = $this->returnMaximumMailToBeSend($fdTasksConf); $maxMailsConfig = $this->returnMaximumMailToBeSend($fdTasksConf);
// Increment for anti=spam, starts at 0, each mail task only contain one email, addition if simply + one. // Increment for anti=spam, starts at 0, each mail task only contain one email, addition if simply + one.
...@@ -129,17 +129,6 @@ class Mail implements EndpointInterface ...@@ -129,17 +129,6 @@ class Mail implements EndpointInterface
return $result; return $result;
} }
/**
* @return array
* Note : A simple retrieval methods of the mail backend configuration set in FusionDirectory
*/
private function getMailObjectConfiguration (): array
{
return $this->gateway->getLdapTasks(
"(objectClass=fdTasksConf)",
["fdTasksConfLastExecTime", "fdTasksConfIntervalEmails", "fdTasksConfMaxEmails"]
);
}
/** /**
* @param array $fdTasksConf * @param array $fdTasksConf
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment