diff --git a/bin/ngcp-fraud-auto-lock b/bin/ngcp-fraud-auto-lock index b13270a..1276f87 100755 --- a/bin/ngcp-fraud-auto-lock +++ b/bin/ngcp-fraud-auto-lock @@ -185,9 +185,11 @@ sub main { if (defined $event->{interval_lock} && $event->{interval_lock} > 0) { lock_customer($event, $subscribers); } - eval { - send_email($event, $subscribers); - }; + if ($event->{interval_notify}) { + eval { + send_email($event, $subscribers); + }; + } print $EVAL_ERROR if $EVAL_ERROR; } return; diff --git a/bin/ngcp-fraud-daily-lock b/bin/ngcp-fraud-daily-lock index 2d73f2d..1820bd0 100755 --- a/bin/ngcp-fraud-daily-lock +++ b/bin/ngcp-fraud-daily-lock @@ -185,9 +185,11 @@ sub main { if (defined $event->{interval_lock} && $event->{interval_lock} > 0) { lock_customer($event, $subscribers); } - eval { - send_email($event, $subscribers); - }; + if ($event->{interval_notify}) { + eval { + send_email($event, $subscribers); + }; + } print $EVAL_ERROR if $EVAL_ERROR; } return;