# iamtechsavvy/n8n-email-cleaner architecture

> Architecture diagram of the GitHub repository iamtechsavvy/n8n-email-cleaner, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iamtechsavvy/n8n-email-cleaner
- Repository: https://github.com/iamtechsavvy/n8n-email-cleaner

## Overview

This repository packages an n8n email-cleaning workflow: on a schedule, it reads candidate emails, filters spam, validates unsubscribe links, attempts unsubscribes, and manages processed messages. The README also describes execution logging and monitoring. Workflow JSON files are present, but were not sampled, so component paths point to their enclosing workflows directory and documented relationships cite the README; implementation details and exact workflow wiring remain unverified.

Main entry points: [`workflows`](https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows) (Email reader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Email workflow"]
  node_schedule["Schedule trigger"]
  node_reader["Email reader"]
  node_filter["Spam filter"]
  node_extract["Link extraction"]
  node_unsubscribe["Unsubscribe automation"]
  node_management["Email management"]
end

subgraph group_operations["Execution operations"]
  node_logs["Execution logs"]
end

subgraph group_platform["Automation platform"]
  node_n8n["n8n runtime"]
end

node_owner(("Email owner"))
node_email["Email provider"]
node_websites["Unsubscribe sites"]

node_owner -->|"configures workflow"| node_n8n
node_n8n -->|"runs workflow"| node_schedule
node_schedule -->|"triggers reading"| node_reader
node_reader -->|"reads messages"| node_email
node_reader -->|"passes content"| node_filter
node_filter -->|"filters messages"| node_extract
node_extract -->|"supplies validated links"| node_unsubscribe
node_unsubscribe -->|"requests unsubscribe"| node_websites
node_unsubscribe -.->|"reports outcomes"| node_management
node_management -->|"labels and moves"| node_email
node_n8n -->|"records executions"| node_logs

click node_schedule "https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows"
click node_reader "https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows"
click node_filter "https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows"
click node_extract "https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows"
click node_unsubscribe "https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows"
click node_management "https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows"
click node_logs "https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_schedule,node_reader,node_filter,node_extract,node_unsubscribe,node_management toneBlue
class node_logs toneAmber
class node_n8n toneMint
class node_owner,node_email,node_websites toneIndigo
```

## Components

### Email workflow

- [Schedule trigger](https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows): `workflows`
- [Email reader](https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows): `workflows`
- [Spam filter](https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows): `workflows`
- [Link extraction](https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows): `workflows`
- [Unsubscribe automation](https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows): `workflows`
- [Email management](https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows): `workflows`

### Execution operations

- [Execution logs](https://github.com/iamtechsavvy/n8n-email-cleaner/tree/main/workflows): `workflows`

### Automation platform

- **n8n runtime**

### Other components

- **Email owner**
- **Email provider**
- **Unsubscribe sites**

## Connections

- Email owner → n8n runtime: configures workflow (evidence: `README.md`)
- n8n runtime → Schedule trigger: runs workflow (evidence: `README.md`)
- Schedule trigger → Email reader: triggers reading (evidence: `README.md`)
- Email reader → Email provider: reads messages (evidence: `README.md`)
- Email reader → Spam filter: passes content (evidence: `README.md`)
- Spam filter → Link extraction: filters messages (evidence: `README.md`)
- Link extraction → Unsubscribe automation: supplies validated links (evidence: `README.md`)
- Unsubscribe automation → Unsubscribe sites: requests unsubscribe (evidence: `README.md`)
- Unsubscribe automation → Email management: reports outcomes
- Email management → Email provider: labels and moves (evidence: `README.md`)
- n8n runtime → Execution logs: records executions (evidence: `README.md`)
