# IMAP Spam Cleaner  [](https://github.com/dominicgisler/imap-spam-cleaner/releases) [](https://github.com/dominicgisler/imap-spam-cleaner/blob/master/LICENSE) [](https://github.com/dominicgisler/imap-spam-cleaner/issues) [](https://github.com/dominicgisler/imap-spam-cleaner/graphs/contributors) [](https://hub.docker.com/r/dominicgisler/imap-spam-cleaner) [](https://ko-fi.com/dominicgisler/tip) A tool to clean up spam in your IMAP inbox. Check the [Documentation](https://dominicgisler.github.io/imap-spam-cleaner) for detailed information. ## Summary This application loads mails from configured IMAP inboxes and checks their contents using the defined provider (OpenAI, Ollama, Gemini, TypeSafe, SpamAssassin or rspamd). Depending on a spam score, the message can be moved to the spam folder, keeping your inbox clean. ## Example ```console $ docker run -v ./config.yml:/app/config.yml dominicgisler/imap-spam-cleaner:latest INFO [2026-02-28T16:53:41Z] Starting imap-spam-cleaner v0.9.4 DEBUG [2026-02-28T16:53:41Z] Loaded config INFO [2026-02-28T16:53:41Z] Starting HTTP server on :8080 INFO [2026-02-28T16:53:41Z] Scheduling inbox info@example.com (*/5 * * * *) INFO [2026-02-28T16:55:00Z] Handling info@example.com DEBUG [2026-02-28T16:55:00Z] Available mailboxes: DEBUG [2026-02-28T16:55:00Z] - INBOX DEBUG [2026-02-28T16:55:00Z] - INBOX.Drafts DEBUG [2026-02-28T16:55:00Z] - INBOX.Sent DEBUG [2026-02-28T16:55:00Z] - INBOX.Trash DEBUG [2026-02-28T16:55:00Z] - INBOX.Spam DEBUG [2026-02-28T16:55:00Z] - INBOX.Spam.Cleaner DEBUG [2026-02-28T16:55:00Z] Found 34 messages in inbox DEBUG [2026-02-28T16:55:00Z] Found 5 UIDs in timerange INFO [2026-02-28T16:55:00Z] Loaded 5 messages DEBUG [2026-02-28T16:55:06Z] Spam score of message #478 (Herzlichen Glückwunsch! Ihr Decathlon-Geschenk wartet auf Sie. 🎁): 90/100 DEBUG [2026-02-28T16:55:12Z] Spam score of message #479 (Leider ist bei der Verarbeitung Ihrer Zahlung ein Problem aufgetreten.): 90/100 DEBUG [2026-02-28T16:55:18Z] Spam score of message #480 (Das neue Geheimnis gegen Bauchfett!): 92/100 DEBUG [2026-02-28T16:55:26Z] Spam score of message #481 (Schnell: 1 Million / Lady Million): 80/100 DEBUG [2026-02-28T16:55:32Z] Spam score of message #483 (Vermögen x4 zu Fest): 85/100 INFO [2026-02-28T16:55:32Z] Moved 5 messages ``` ## Contributors Feel free to contribute to this project, check the [Contribution Guidelines](CONTRIBUTING.md) for more information.
|
Dominic Gisler |
Niklas Steiner |
alanpbaldwin |