new: [email] New setting `MISP.event_alert_metadata_only`

pull/6967/head
Jakub Onderka 2021-02-08 11:09:35 +01:00
parent 9f81f0fb65
commit 29040c4f1c
3 changed files with 11 additions and 1 deletions

View File

@ -490,6 +490,7 @@ class EventShell extends AppShell
'includeEventCorrelations' => true,
'noEventReports' => true,
'noSightings' => true,
'metadata' => Configure::read('MISP.event_alert_metadata_only') ?: false,
]);
if (empty($eventForUser)) {
$this->error("Event with ID $eventId not exists or given user don't have permission to access it.");

View File

@ -3196,6 +3196,7 @@ class Event extends AppModel
'includeEventCorrelations' => true,
'noEventReports' => true,
'noSightings' => true,
'metadata' => Configure::read('MISP.event_alert_metadata_only') ?: false,
])[0];
if ($this->UserSetting->checkPublishFilter($user, $eventForUser)) {

View File

@ -4864,12 +4864,20 @@ class Server extends AppModel
),
'extended_alert_subject' => array(
'level' => 1,
'description' => __('enabling this flag will allow the event description to be transmitted in the alert e-mail\'s subject. Be aware that this is not encrypted by GnuPG, so only enable it if you accept that part of the event description will be sent out in clear-text.'),
'description' => __('Enabling this flag will allow the event description to be transmitted in the alert e-mail\'s subject. Be aware that this is not encrypted by GnuPG, so only enable it if you accept that part of the event description will be sent out in clear-text.'),
'value' => false,
'errorMessage' => '',
'test' => 'testBool',
'type' => 'boolean'
),
'event_alert_metadata_only' => [
'level' => self::SETTING_OPTIONAL,
'description' => __('Send just event metadata (attributes and objects will be omitted) for event alert.'),
'value' => false,
'errorMessage' => '',
'test' => 'testBool',
'type' => 'boolean'
],
'default_event_distribution' => array(
'level' => 0,
'description' => __('The default distribution setting for events (0-3).'),