Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions app/Mail/Rbl.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,33 @@ class Rbl extends \App\Base
2 => ['label' => 'LBL_PUBLIC_BLACK_LIST', 'icon' => 'fas fa-ban text-danger', 'alertColor' => '#eaeaea', 'listColor' => '#ff555233'],
3 => ['label' => 'LBL_PUBLIC_WHITE_LIST', 'icon' => 'far fa-check-circle text-success', 'alertColor' => '#E1FFE3', 'listColor' => '#fff'],
];
/**
* List categories.
*
* @var array
*/
public const LIST_CATEGORIES = [
'Black' => [
'[SPAM] Single unwanted message' => 'LBL_SPAM_SINGLE_UNWANTED_MESSAGE',
'[SPAM] Mass unwanted message' => 'LBL_SPAM_MASS_UNWANTED_MESSAGE',
'[SPAM] Sending an unsolicited message repeatedly' => 'LBL_SPAM_SENDING_UNSOLICITED_MESSAGE_REPEATEDLY',
'[Fraud] Money scam' => 'LBL_FRAUD_MONEY_SCAM',
'[Fraud] Phishing' => 'LBL_FRAUD_PHISHING',
'[Fraud] An attempt to persuade people to buy a product or service' => 'LBL_FRAUD_ATTEMPT_TO_PERSUADE_PEOPLE_TO_BUY',
'[Security] An attempt to impersonate another person' => 'LBL_SECURITY_ATTEMPT_TO_IMPERSONATE_ANOTHER_PERSON',
'[Security] An attempt to persuade the recipient to open a resource from outside the organization' => 'LBL_SECURITY_ATTEMPT_TO_PERSUADE_FROM_ORGANIZATION',
'[Security] An attempt to persuade the recipient to open a resource inside the organization' => 'LBL_SECURITY_ATTEMPT_TO_PERSUADE_INSIDE_ORGANIZATION',
'[Security] Infrastructure and application scanning' => 'LBL_SECURITY_INFRASTRUCTURE_AND_APPLICATION_SCANNING',
'[Security] Attack on infrastructure or application' => 'LBL_SECURITY_ATTACK_INFRASTRUCTURE_OR_APPLICATION',
'[Security] Overloading infrastructure or application' => 'LBL_SECURITY_OVERLOADING_INFRASTRUCTURE_OR_APPLICATION',
'[Other] The message contains inappropriate words' => 'LBL_OTHER_MESSAGE_CONTAINS_INAPPROPRIATE_WORDS',
'[Other] The message contains inappropriate materials' => 'LBL_OTHER_MESSAGE_CONTAINS_INAPPROPRIATE_MATERIALS',
'[Other] Malicious message' => 'LBL_OTHER_MALICIOUS_MESSAGE'
],
'White' => [
'[Whitelist] Trusted sender' => 'LBL_TRUSTED_SENDER'
]
];
/**
* RLB black list type.
*
Expand Down
1 change: 1 addition & 0 deletions languages/en-US/Settings/MailRbl.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"LBL_OTHER_MESSAGE_CONTAINS_INAPPROPRIATE_WORDS": "[Other] The message contains inappropriate words",
"LBL_OTHER_MESSAGE_CONTAINS_INAPPROPRIATE_MATERIALS": "[Other] The message contains inappropriate materials",
"LBL_OTHER_MALICIOUS_MESSAGE": "[Other] Malicious message",
"LBL_TRUSTED_SENDER": "[Whitelist] Trusted sender",
"LBL_REPORT_IP": "Ip",
"LBL_REPORT_TYPE": "Type",
"LBL_REPORT_DESC": "Report details",
Expand Down
18 changes: 1 addition & 17 deletions modules/Settings/MailRbl/views/ReportModal.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,7 @@ public function process(App\Request $request)
$viewer->assign('MODAL_DESC', 'LBL_REPORT_MODAL_DESC_' . strtoupper($type));
$viewer->assign('TYPE_NAME', $recordModel->get('type') ? 'LBL_REPORT_WHITE' : 'LBL_REPORT_BLACK');
$viewer->assign('RECORD', $request->getInteger('id'));
$viewer->assign('CATEGORIES', [
'[SPAM] Single unwanted message' => 'LBL_SPAM_SINGLE_UNWANTED_MESSAGE',
'[SPAM] Mass unwanted message' => 'LBL_SPAM_MASS_UNWANTED_MESSAGE',
'[SPAM] Sending an unsolicited message repeatedly' => 'LBL_SPAM_SENDING_UNSOLICITED_MESSAGE_REPEATEDLY',
'[Fraud] Money scam' => 'LBL_FRAUD_MONEY_SCAM',
'[Fraud] Phishing' => 'LBL_FRAUD_PHISHING',
'[Fraud] An attempt to persuade people to buy a product or service' => 'LBL_FRAUD_ATTEMPT_TO_PERSUADE_PEOPLE_TO_BUY',
'[Security] An attempt to impersonate another person' => 'LBL_SECURITY_ATTEMPT_TO_IMPERSONATE_ANOTHER_PERSON',
'[Security] An attempt to persuade the recipient to open a resource from outside the organization' => 'LBL_SECURITY_ATTEMPT_TO_PERSUADE_FROM_ORGANIZATION',
'[Security] An attempt to persuade the recipient to open a resource inside the organization' => 'LBL_SECURITY_ATTEMPT_TO_PERSUADE_INSIDE_ORGANIZATION',
'[Security] Infrastructure and application scanning' => 'LBL_SECURITY_INFRASTRUCTURE_AND_APPLICATION_SCANNING',
'[Security] Attack on infrastructure or application' => 'LBL_SECURITY_ATTACK_INFRASTRUCTURE_OR_APPLICATION',
'[Security] Overloading infrastructure or application' => 'LBL_SECURITY_OVERLOADING_INFRASTRUCTURE_OR_APPLICATION',
'[Other] The message contains inappropriate words' => 'LBL_OTHER_MESSAGE_CONTAINS_INAPPROPRIATE_WORDS',
'[Other] The message contains inappropriate materials' => 'LBL_OTHER_MESSAGE_CONTAINS_INAPPROPRIATE_MATERIALS',
'[Other] Malicious message' => 'LBL_OTHER_MALICIOUS_MESSAGE',
]);
$viewer->assign('CATEGORIES', \App\Mail\Rbl::LIST_CATEGORIES[$type]);
$viewer->view('ReportModal.tpl', $request->getModule(false));
}
}