A script for Harmony Email & Collaboration which utilizes the API to add or remove emails from the block-list, or quarantine them from user's mailboxes.
- "-e", "--email_pattern", help="Email pattern to match (will be added as contains, not exact)"
- "-a", "--action", choices=["phishing", "spam", "greymail"], help="Action needed - What to classify email as"
- "-q", "--quarantine", choices=["true", "false"], default=None, help="Set 'quarantineAll' flag (true or false) -> Will quarantine emails from 7 days ago"
- "-d", "--delete", metavar="EMAIL", help="Delete an email from the blocklist by providing the email address"
py HEC_Blocklist_API.py -a spam -e [email protected] -q true
py HEC_Blocklist_API.py -d [email protected]