parent
45ec38452c
commit
ca9f62db32
|
|
@ -90,7 +90,10 @@ class UpdateMailboxStats extends Command
|
||||||
private function countMessages(string $email, string $base): int
|
private function countMessages(string $email, string $base): int
|
||||||
{
|
{
|
||||||
// 1) Bevorzugt: doveadm
|
// 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 = Process::fromShellCommandline($cmd);
|
||||||
$p->run();
|
$p->run();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue