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

main v1.0.92
boban 2025-10-29 03:10:11 +01:00
parent 659f3cb7ae
commit 9074904683
2 changed files with 7 additions and 8 deletions

View File

@ -346,7 +346,10 @@ class DomainDnsModal extends ModalComponent
$t = strtoupper($type);
if (in_array($t, ['MX','CNAME','SRV'])) $v = rtrim($v, '.');
if ($t === 'PTR') $v = strtolower(rtrim($v, '.'));
if ($t === 'TLSA') $v = preg_replace('/\s+/', ' ', $v);
if ($t === 'TLSA') {
$v = preg_replace('/\s+/', '', $v); // Hash-Zeilen zusammenfügen
$v = preg_replace('/^([0-3][\s]+[01][\s]+[123])/', '$1 ', $v); // spacing nach Header erzwingen
}
return $v;
}
@ -362,7 +365,7 @@ class DomainDnsModal extends ModalComponent
'PTR' => (bool)preg_match('/\.(in-addr|ip6)\.arpa$/i', $val),
'MX' => (bool)preg_match('/^\d+\s+[a-z0-9._-]+$/i', $val),
'SRV' => (bool)preg_match('/^\d+\s+\d+\s+\d+\s+[a-z0-9._-]+$/i', $val),
'TLSA' => (bool)preg_match('/^[0-3]\s+[01]\s+[123]\s+[0-9a-f]{32,}$/i', $val),
'TLSA' => (bool)preg_match('/^[0-3]\s+[01]\s+[123]\s+[0-9a-f\s]{32,}$/i', $val),
'TXT' => strlen($val) > 0,
default => true,
};

View File

@ -78,9 +78,7 @@
<div class="rounded-xl border {{ $r['boxClass'] ?? $stateColors['neutral'] }}">
<div class="flex items-center justify-between px-4 py-2 text-[12px]">
<div class="flex items-center gap-2">
<span class="px-2 py-0.5 rounded {{ $recordColors[$r['type']] ?? 'bg-slate-700/50 text-slate-300' }}">
{{ $r['type'] }}
</span>
<span class="px-2 py-0.5 rounded {{ $recordColors[$r['type']] ?? 'bg-slate-700/50 text-slate-300' }}">{{ $r['type'] }}</span>
<span class="text-slate-200">{{ $r['name'] }}</span>
</div>
<div class="flex items-center gap-2 text-slate-300/70">
@ -93,9 +91,7 @@
@if($checked && filled(trim($r['actual'] ?? '')) && ($r['state'] ?? '') !== 'ok')
<div class="text-[11px] text-white/60 break-words">
<span class="opacity-70">Ist:</span>
<span class="font-mono break-all">
{{ str_replace('"', '', preg_replace('/\s+/', ' ', trim($r['actual']))) }}
</span>
<span class="font-mono break-all">{{ $r['actual'] }}</span>
</div>
@endif
</div>