Notices to different destinations (emails or pages)

Description

The current notice framework gives us capability to define NOTICE_ACTIONS such as EMAIL/PAGE/DROP/LOG/IGNORE.

IT would be great if we can dispatch different notice types to different email addresses. Currently ACTION_EMAIL only allows me to send it to one address.

Could I be able to do something like this or how you see fit

hook Notice:olicy(n: Notice::Info)
{
if ( n$note == HTTP::HTTP_SensitiveURI && n$src in Site::local_nets )
{
add n$actions[Notice::ACTION_EMAIL];
add n$destination["internal-maillist@example.com"];
}
else if ( n$note == HTTP::HTTP_SensitiveURI && n$src !in Site::local_nets )
{
add n$actions[Notice::ACTION_EMAIL];
add n$destination["external-maillist@example.com"];
}
}

Environment

None

Assignee

Unassigned

Reporter

Aashish Sharma

Labels

External issue ID

None

Components

Affects versions

Priority

Low
Configure