Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-orchestrator
Commits
c68a05bf
Commit
c68a05bf
authored
1 month ago
by
Oana-Eliza Alexa
Browse files
Options
Download
Patches
Plain Diff
use utils
parent
e3f0d89f
79-redesign-mail
1 merge request
!75
Draft: Resolve "Redesign Mail"
Pipeline
#32365
failed with stages
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/tasks/Mail.php
+1
-12
plugins/tasks/Mail.php
with
1 addition
and
12 deletions
+1
-12
plugins/tasks/Mail.php
+
1
−
12
View file @
c68a05bf
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets