imap-spam-cleaner

command module
v0.0.0-...-f9511c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

README

IMAP spam cleaner

License Issues Last commit

A tool to clean up spam in your imap inbox.

Work In Progress

How does it work

This application loads mails from configured imap inboxes and checks their contents using the defined provider. Depending on a spam score, the message can be moved to the spam folder, keeping your inbox clean.

How to use

From source
  • Install Go version 1.23.2+
  • Clone this repository
  • Load dependencies (go get ./...)
  • Create config.yml matching your inboxes
  • Run the application (go run .)
Configuration

Use this configuration as an example for your own setup.

providers:                    # providers to be used for inboxes
  prov1:                      # provider name
    type: openai              # provider type
    credentials:              # provider specific credentials
      apikey: some-api-key

inboxes:                      # inboxes to be checked
  - host: mail.domain.tld     # imap host
    port: 143                 # imap port
    tls: false                # imap ssl
    username: user@domain.tld # imap user
    password: mypass          # imap password
    provider: prov1           # provider used for spam analysis
    inbox: INBOX              # inbox folder
    spam: INBOX.Spam          # spam folder

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL