Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
56ae2538
Commit
56ae2538
authored
Jun 12, 2014
by
Florian Schaal
Browse files
make sure "doveadm quota" works and quota is enabled (seems to be broken in dovecot 2.2.x)
parent
4a569d97
Changes
1
Show whitespace changes
Inline
Side-by-side
server/lib/classes/cron.d/100-monitor_email_quota.inc.php
View file @
56ae2538
...
...
@@ -81,7 +81,8 @@ class cronjob_monitor_email_quota extends cronjob {
//* with dovecot we can use doveadm instead of 'du -s'
$dovecot
=
false
;
if
(
isset
(
$mail_config
[
'pop3_imap_daemon'
])
&&
$mail_config
[
'pop3_imap_daemon'
]
=
'dovecot'
&&
is_executable
(
'doveadm'
))
{
$dovecot
=
true
;
exec
(
'doveadm quota 2>&1'
,
$tmp_output
,
$tmp_retval
);
// with dovecot 2.2.x 'doveadm quota' is unuseable
if
(
$retval
=
64
)
$dovecot
=
true
;
}
foreach
(
$mailboxes
as
$mb
)
{
...
...
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!
Cancel
Please
register
or
sign in
to comment