From 7da76f543a7c14da78919fdbdb839678158f6653 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Fri, 11 Sep 2020 16:49:44 +0200 Subject: [PATCH] fix: [Yara tracker] fix mail notification --- bin/trackers/Tracker_Yara.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/trackers/Tracker_Yara.py b/bin/trackers/Tracker_Yara.py index 25666304..4ed8a522 100755 --- a/bin/trackers/Tracker_Yara.py +++ b/bin/trackers/Tracker_Yara.py @@ -48,7 +48,7 @@ def yara_rules_match(data): mail_to_notify = Tracker.get_tracker_mails(tracker_uuid) if mail_to_notify: mail_subject = Tracker.get_email_subject(tracker_uuid) - mail_body = mail_body_template.format(term, item_id, full_item_url, item_id) + mail_body = mail_body_template.format(data['rule'], item_id, full_item_url, item_id) for mail in mail_to_notify: NotificationHelper.sendEmailNotification(mail, mail_subject, mail_body)