exp:mailconsent
Das Einwilligungsprotokoll der E-Mail-Einstellungen: auflisten, als CSV exportieren, nach Aufbewahrungsfrist aufräumen (Probelauf, außer mit --apply).
Skript bin/php/mailconsent.php, Code in kernel/private/classes/commands/mailconsent.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:
./console exp:mailconsent --help
./console exp:mail:consent --help
php bin/php/mailconsent.php --helpHilfetext
Was --help ausgibt, so wie der Befehl es schreibt:
E-mail consent log
list the newest rows (time, person, category, action, old -> new, source)
export the rows as CSV (--output, or the screen); the CSV holds addresses and IPs
cleanup retention: remove the rows of people who are gone after RetentionDays, expired
confirmations and old suppression entries; counts only, --apply removes
Filters: --user, --email, --category, --action, --source, --from, --to (YYYY-MM-DD).
cleanup without --apply removes nothing: it counts what it would remove. --dry-run is still
accepted and means the same as no flag; --apply together with --dry-run is a usage error (exit 2).
./console exp:mail:consent list --category=newsletter --limit=20
./console exp:mail:consent export --from=2026-01-01 --output=var/tmp/consent.csv
./console exp:mail:consent cleanup
./console exp:mail:consent cleanup --applyOptionen
| Option | Wert | Hilfe |
|---|---|---|
--user | erforderlich | ein Login oder eine Benutzer-ID |
--email | erforderlich | eine Adresse |
--category | erforderlich | ein Kategoriebezeichner |
--action | erforderlich | on, off, pending, confirm, ... |
--source | erforderlich | page, link, admin, import, signup, bridge, confirm, system |
--from | erforderlich | ab diesem Tag |
--to | erforderlich | bis zu diesem Tag |
--limit | erforderlich | list: wie viele (Standard 50) |
--offset | erforderlich | list: so viele überspringen |
--output | erforderlich | export: die Datei (Modus 0600) |
--apply | cleanup: die Zeilen entfernen (Standard zählt sie und entfernt nichts) | |
--dry-run | cleanup: der Standard, beibehalten für Skripte, die die Option übergeben: nur zählen | |
--addresses | list: Adressen zeigen, statt sie zu verbergen |
Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Siehe auch
Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/mailconsent.php, kernel/private/classes/commands/mailconsent.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.