diff --git a/debian/changelog b/debian/changelog index 8dac79f..faa9596 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +intelmq-mailgen (1.3.6-2) UNRELEASED; urgency=medium + + * do not commit the directive to db if only in preview-mode + + -- Sebastian Wagner Wed, 18 Sep 2024 15:28:58 +0200 + intelmq-mailgen (1.3.6-1) stable; urgency=medium * gnupg: set home dir with parameter, not env variable diff --git a/intelmqmail/cb.py b/intelmqmail/cb.py index 762955d..5b0f377 100644 --- a/intelmqmail/cb.py +++ b/intelmqmail/cb.py @@ -377,7 +377,7 @@ def mailgen(config: dict, scripts: list, process_all: bool = False, template: Op if cur is not None: cur.close() - if dry_run: + if dry_run or get_preview: conn.rollback() else: # the only change to the database is marking the sent mails as