Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom email notification #11

Open
Yosirion opened this issue Nov 3, 2021 · 1 comment
Open

Custom email notification #11

Yosirion opened this issue Nov 3, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Yosirion
Copy link

Yosirion commented Nov 3, 2021

I think that it could be useful to add the possibility to customize the emails that thephish send to the users that forwarded the email. One way could be to add in the json file configuration.json or in a new json file something like that

 "email" : {
                 "notification" : "Notification text. [{0}] to include the subject of the email",
                 "safe" : "Safe email text. [{0}] to include the subject of the email",
                 "malicius" : "Malicius email text. [{0}] to include the subject of the email"
        }

The suspicius case is not included because the email notification isn't automatic.
A possible change to the code could be:

task_notification = thehive4py.models.CaseTask(
                                        id=task_id,
                                        description = "mailto:" + mail_to + "\n" + config['notification'].format(case.json()['title'][11:]),
                                        status = 'InProgress'
                                        )

Where config['notification'] is equal to the value of the object Notification.

@Yosirion Yosirion added the enhancement New feature or request label Nov 3, 2021
@emalderson
Copy link
Owner

Thanks for the suggestion. I'll consider adding this feature in a future commit.

@emalderson emalderson self-assigned this Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants