parent
45ec38452c
commit
fdfa282af0
|
|
@ -90,7 +90,10 @@ class UpdateMailboxStats extends Command
|
|||
private function countMessages(string $email, string $base): int
|
||||
{
|
||||
// 1) Bevorzugt: doveadm
|
||||
$cmd = 'doveadm mailbox status -u '.escapeshellarg($email).' messages INBOX';
|
||||
$cmd = sprintf(
|
||||
'doveadm -S /run/dovecot/doveadm-server mailbox status -u %s messages INBOX',
|
||||
escapeshellarg($email)
|
||||
);
|
||||
$p = Process::fromShellCommandline($cmd);
|
||||
$p->run();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue