Fix: Mailbox Stats über Dovecot mit config/mailpool.php

main v1.0.03
boban 2025-10-21 01:57:37 +02:00
parent 45ec38452c
commit fdfa282af0
1 changed files with 4 additions and 1 deletions

View File

@ -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();