Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:mailconsent

Das Einwilligungsprotokoll der E-Mail-Einstellungen: auflisten, als CSV exportieren, nach Aufbewahrungsfrist aufräumen (Probelauf, außer mit --apply).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/mailconsent.md

On this page

This page is a translation. Read the English original

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 --help

Hilfetext

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 --apply

Optionen

OptionWertHilfe
--usererforderlichein Login oder eine Benutzer-ID
--emailerforderlicheine Adresse
--categoryerforderlichein Kategoriebezeichner
--actionerforderlichon, off, pending, confirm, ...
--sourceerforderlichpage, link, admin, import, signup, bridge, confirm, system
--fromerforderlichab diesem Tag
--toerforderlichbis zu diesem Tag
--limiterforderlichlist: wie viele (Standard 50)
--offseterforderlichlist: so viele überspringen
--outputerforderlichexport: die Datei (Modus 0600)
--applycleanup: die Zeilen entfernen (Standard zählt sie und entfernt nichts)
--dry-runcleanup: der Standard, beibehalten für Skripte, die die Option übergeben: nur zählen
--addresseslist: 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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x