Skip to content

Commit 56ae253

Browse files
author
Florian Schaal
committed
make sure "doveadm quota" works and quota is enabled (seems to be broken in dovecot 2.2.x)
1 parent 4a569d9 commit 56ae253

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)