Subject-Based Spam Mailbox Cleanup

Subject-Based Spam Mailbox Cleanup

Subject-Based Spam Mailbox Cleanup

This automation searches a user's mailbox for messages with the subject "SPAM," checks whether matching messages are present, and deletes them when found. It records the activity and deletion results in a Jira issue before closing it.

SPAM

Search

Process Automation

Ticket Management

Trigger

A run for a specified user's mailbox initiates a search for messages with the subject filter "SPAM."

Outcome

The matching messages are deleted when found, the activity is documented in a Jira issue, and the issue is closed.

Trigger

A run for a specified user's mailbox initiates a search for messages with the subject filter "SPAM."

Outcome

The matching messages are deleted when found, the activity is documented in a Jira issue, and the issue is closed.

Before

An operator would search the user's mailbox for messages with the specified subject, review whether results were present, and delete the identified emails manually. They would then add the cleanup details to a Jira issue and close the issue after completing the work.

How it works

  1. Search the user's mailbox for messages whose subject matches "SPAM" and determine whether any results were found.
  2. Delete the identified messages when matches exist; otherwise continue without a deletion step.
  3. Record the activity and deletion results in Jira, then close the related issue.

Workflow details

  • Mailbox search: The workflow searches the specified user's mailbox for messages matching the subject filter "SPAM," replacing the need to locate potentially unwanted messages manually.
  • Result decision: It evaluates whether matching messages were found and follows the appropriate branch based on the search result.
  • Message deletion: When matching messages exist, the workflow deletes the identified emails from the mailbox.
  • Operational tracking: The workflow adds Jira comments to document the activity, including the results of the deletion when messages are removed.
  • Issue completion: After the mailbox action and tracking updates are complete, it closes the related Jira issue, providing a finished record of the cleanup.

What changed

Mailbox searching, result evaluation, message deletion, Jira status updates, and issue closure now occur in one workflow. The human handoff changes from performing and documenting the cleanup manually to reviewing the completed Jira record when needed.

Work removed

Searching the mailbox for matching subjects, checking whether results exist, deleting each identified message, copying the cleanup results into Jira, adding status comments, and manually closing the issue.

Expected outcome

Each run is expected to remove one manual mailbox search-and-check sequence and one Jira documentation-and-closure sequence, while leaving a completed record of the cleanup.

Related flows

Related flows

Explore more workflows with similar topics or tools.

Automated Employee Offboarding

Automates employee offboarding by identifying recently changed employee records, checking whether offboarding is due today, removing qualifying users from Slack, suspending their Google Workspace and Okta access, and sending a detailed status email. This replaces a multi-system manual checklist with a consistent automated sequence.

Automates employee offboarding by identifying recently changed employee records, checking whether offboarding is due today, removing qualifying users from Slack, suspending their Google Workspace and Okta access, and sending a detailed status email. This replaces a multi-system manual checklist with a consistent automated sequence.

Explore use case

Explore use case

Automated Security Alert Enrichment

This automation runs a complex query against Log Analytics to retrieve Azure Sentinel alerts or other security logs, converts the returned data into JSON, and uses it to update security alerts with additional information. It replaces a manual search-and-update process with a consistent enrichment workflow.

This automation runs a complex query against Log Analytics to retrieve Azure Sentinel alerts or other security logs, converts the returned data into JSON, and uses it to update security alerts with additional information. It replaces a manual search-and-update process with a consistent enrichment workflow.

Explore use case

Explore use case

Automated Background Check Evidence Collection

This automation identifies personnel records in Drata that do not have background check evidence and adds the available evidence to those records. It replaces repeated compliance lookups and uploads with a structured process that supports regulatory readiness.

This automation identifies personnel records in Drata that do not have background check evidence and adds the available evidence to those records. It replaces repeated compliance lookups and uploads with a structured process that supports regulatory readiness.

Explore use case

Explore use case

Less busywork. More possibility.

Let your agents handle the routine. Make room for what comes next.

Automation intelligence, delivered monthly.

Product releases, automation playbooks, and security research โ€” straight to your inbox. No spam, unsubscribe anytime.

ยฉ 2026 Mindflow โ€” All rights reserved.

SOC 2 Type II
ISO 27001
GDPR
France 2030
Bpifrance
รŽle-de-France

Less busywork. More possibility.

Let your agents handle the routine. Make room for what comes next.

Automation intelligence, delivered monthly.

Product releases, automation playbooks, and security research โ€” straight to your inbox. No spam, unsubscribe anytime.

ยฉ 2026 Mindflow โ€” All rights reserved.

SOC 2 Type II
ISO 27001
GDPR
France 2030
Bpifrance
รŽle-de-France

Automation intelligence, delivered monthly.

Product releases, automation playbooks, and security research โ€” straight to your inbox. No spam, unsubscribe anytime.

ยฉ 2026 Mindflow โ€” All rights reserved.

SOC 2 Type II
ISO 27001
GDPR
France 2030
Bpifrance
รŽle-de-France
To embed a website or widget, add it to the properties panel.