Skip to content

Commit

Permalink
do not write directives to DB if in preview mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wagner-intevation committed Sep 18, 2024
1 parent 2072130 commit 423f52e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> 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
Expand Down
2 changes: 1 addition & 1 deletion intelmqmail/cb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 423f52e

Please sign in to comment.