Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
agallavardin
fusiondirectory-plugins
Commits
002a503f
Commit
002a503f
authored
Jul 04, 2016
by
Côme Chilliet
Browse files
Fixes #4954 Reseting mail server cache when it makes sense
parent
4fb00add
Changes
3
Hide whitespace changes
Inline
Side-by-side
cyrus/admin/systems/services/cyrus/class_serviceCyrus.inc
View file @
002a503f
...
...
@@ -112,9 +112,17 @@ class serviceCyrus extends simpleService
);
}
function
save
()
protected
function
post_
save
()
{
parent
::
save
();
parent
::
post_save
();
if
(
!
$this
->
initially_was_account
)
{
mailMethod
::
resetMailServersCache
();
}
}
protected
function
post_remove
()
{
parent
::
post_remove
();
mailMethod
::
resetMailServersCache
();
}
}
...
...
dovecot/admin/systems/services/dovecot/class_serviceDovecot.inc
View file @
002a503f
...
...
@@ -103,9 +103,17 @@ class serviceDovecot extends simpleService
);
}
function
save
()
protected
function
post_
save
()
{
parent
::
save
();
parent
::
post_save
();
if
(
!
$this
->
initially_was_account
)
{
mailMethod
::
resetMailServersCache
();
}
}
protected
function
post_remove
()
{
parent
::
post_remove
();
mailMethod
::
resetMailServersCache
();
}
}
...
...
mail/admin/systems/services/imap/class_serviceIMAP.inc
View file @
002a503f
...
...
@@ -23,7 +23,7 @@
class
serviceIMAP
extends
simpleService
{
/* This plugin only writes its objectClass */
var
$objectclasses
=
array
(
"
fdImapServer
"
);
var
$objectclasses
=
array
(
'
fdImapServer
'
);
/* Return plugin informations for acl handling */
static
function
plInfo
()
...
...
@@ -42,14 +42,26 @@ class serviceIMAP extends simpleService
*/
static
function
getAttributesInfo
()
{
return
array
();
return
array
();
}
function
execute
()
{
return
"
<b>This server runs an IMAP or POP3 server</b>
"
.
parent
::
execute
();
return
'
<b>This server runs an IMAP or POP3 server</b>
'
.
parent
::
execute
();
}
}
protected
function
post_save
()
{
parent
::
post_save
();
if
(
!
$this
->
initially_was_account
)
{
mailMethod
::
resetMailServersCache
();
}
}
protected
function
post_remove
()
{
parent
::
post_remove
();
mailMethod
::
resetMailServersCache
();
}
}
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment