EmailDomainBlacklist

Accepts an array of domains as a block list, and a list of email addresses. The script then filters out any email address whose domain is in the block list. The filtered list will be returned as an array.

python · Filters And Transformers

Details

IDEmailDomainBlacklist
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10404775
Tagstransformer general entirelist

README

Accepts an array of domains as a block list, and a list of email addresses. The script then filters out any email address whose domain is in the block list. The filtered list will be returned as an array.

Script Data


Name Description
Script Type python3
Tags transformer, general, entirelist
Cortex XSOAR Version 5.0.0

Inputs


Argument Name Description
value An array of email addresses to be filtered by domain.
domain_list An array of domains to block list.

Outputs


There are no outputs for this script.

commonfields:
  id: EmailDomainBlacklist
  version: -1
name: EmailDomainBlacklist
script: ''
type: python
subtype: python3
tags:
- transformer
- general
- entirelist
comment: Accepts an array of domains as a block list, and a list of email addresses. The script then filters out any email address whose domain is in the block list.  The filtered list will be returned as an array.
enabled: true
args:
- name: value
  required: true
  description: An array of email addresses to be filtered by domain.
  isArray: true
- name: domain_list
  required: true
  description: An array of domains to block list.
  isArray: true
scripttarget: 0
isllm: false
dockerimage: demisto/python3:3.12.13.10404775
runas: DBotWeakRole
tests:
- No test - unit test
fromversion: 5.0.0