From 7943cbed4d9beccd1c47f3a75921500bc930b2b9 Mon Sep 17 00:00:00 2001
From: "Tobias Dussa (TGD)" <dussa@dfn-cert.de>
Date: Tue, 17 Sep 2024 18:16:18 +0200
Subject: [PATCH] Added hash to script output.

---
 reaction-mailcreate/createMails.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reaction-mailcreate/createMails.py b/reaction-mailcreate/createMails.py
index a65b85a..1ae43c3 100755
--- a/reaction-mailcreate/createMails.py
+++ b/reaction-mailcreate/createMails.py
@@ -373,7 +373,7 @@ def createMail(data):
         message['Bcc'] = ', '.join(args.bcc).format_map(SafeDict(basedir=args.basedir, campaign=args.campaign, infix=args.infix, webserver=args.webserver, salt=args.salt, site=data['site'], firstname=data['firstname'], lastname=data['lastname'], email=data['email'], hash=data['hash'], URL=data['URL'], timestamp=data['timestamp']))
 
     # Record mail
-    print(f'Writing mail to {output}')
+    print(f'Writing mail to {output} using hash {data["hash"]}')
     if not os.path.exists(directory):
         os.makedirs(directory)
     with open(output, 'w') as mailfile:
-- 
GitLab