fix(PROJ-51): retain_until_source nicht für Endbenutzer, WARN-Status in CLI

- search_handlers.go: retain_until_source wird nur noch an Rollen != user
  ausgegeben, um interne Archivierungsregel-IDs nicht an normale
  Endbenutzer zu exponieren
- cmd_status.go: archivmail status zeigt [WARN] statt [OK] wenn Detail
  mit "WARNUNG" beginnt (z.B. PROJ-51 Retention-Check); Exit-Code/r.OK
  bleibt unverändert

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sysops
2026-06-13 21:05:07 +02:00
parent 507dee6431
commit 7ac0391205
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -66,6 +66,11 @@ func runStatus(args []string) {
status := "OK"
if !r.OK {
status = "FEHLER"
} else if strings.HasPrefix(r.Detail, "WARNUNG") {
// Non-fatal but GoBD-relevant (e.g. PROJ-51 retention check):
// reflect the warning in the status label without affecting
// the exit code (r.OK stays true).
status = "WARN"
}
if r.Latency != "" {
fmt.Printf("[%-6s] %-12s %s (%s)\n", status, r.Name, r.Detail, r.Latency)