Skip to content

Commit d3be569

Browse files
author
Marius Cramer
committed
Merge branch 'master' into 'master'
Master
2 parents 4a569d9 + 56ae253 commit d3be569

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/lib/classes/cron.d/100-monitor_email_quota.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ public function onRunJob() {
8181
//* with dovecot we can use doveadm instead of 'du -s'
8282
$dovecot = false;
8383
if (isset($mail_config['pop3_imap_daemon']) && $mail_config ['pop3_imap_daemon'] = 'dovecot' && is_executable('doveadm')) {
84-
$dovecot = true;
84+
exec('doveadm quota 2>&1', $tmp_output, $tmp_retval); // with dovecot 2.2.x 'doveadm quota' is unuseable
85+
if ($retval = 64) $dovecot = true;
8586
}
8687

8788
foreach($mailboxes as $mb) {

0 commit comments

Comments
 (0)