All Projects → genuinetools → 1up

genuinetools / 1up

Licence: MIT License
A custom Gmail spam filter bot.

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects
Dockerfile
14818 projects

1up

make-all make-image GoDoc Github All Releases

A custom Gmail spam filter bot.

Table of Contents

How it works

The bot will create 3 labels in your Gmail:

  • 1up/good: where you label emails that are "good"
  • 1up/bad: where you label emails that are "bad"
  • 1up/quarantine: where the bot will place emails that it thinks are "bad" based off the results of the Bayes classifier

Thanks to @brendandburns for pointing me at Bayes classifiers.

Installation

Binaries

For installation instructions from binaries please visit the Releases Page.

You will want to follow the steps here to turn on the Gmail API and get a credentials file.

Via Go

$ go get github.com/genuinetools/1up

Via Docker

$ docker run --rm -it -v ~/configs/1up:/1up:ro \
    --tmpfs /tmp \
    r.j3ss.co/1up -f /1up/credentials.json

Usage

$ 1up -h
1up -  A custom Gmail spam filter bot.

Usage: 1up <command>

Flags:

  -d, --debug       enable debug logging (default: false)
  -f, --creds-file  Gmail credential file (or env var GMAIL_CREDENTIAL_FILE) (default: <none>)
  -i, --interval    update interval (ex. 5ms, 10s, 1m, 3h) (default: 5m0s)
  --once            run once and exit, do not run as a daemon (default: false)

Commands:

  version  Show the version information.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].