v0.0.2
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAluEuS8ACgkQGPNoXAAi
v/OQkRAAqy7DOL2nIEQEgTT+jOoCnrcFwJJss9WDT0iVRy03ZRlUsgf5w4/7hhpR
CWrgm3aIPHzjm3Mj5E1Am9pvsQiHsHH3RS7cv25jfAC5on3hX/Vc5CT3zsUJ+MlT
pcwfz7aka+2nSriSWETQlqETW8cG9VmBz8OFoq6FDKVocKEidP+W/Vsh0z4pCOXU
IRe05ZfC9naP7NM/ibE+BuwjheNuhaNKtd2MyNCoEwrR0IWmWDB2nXHBKcBylH4t
u+G9d6NzjuEPbxkDRce6i+Y7FfK2WISxBBVqykAZC/lPHQ/9mAoLtrT0cqd/PVV2
cWGHKJDSbveAVRfIBf3BKxfcDhzK5TJlIUZxkh8bCYsMupKGCyMTUhrXGU3RT3Nu
af6OVGfLn0yG1oVUITd/BOQcFE8uV7pOl0Pfwfoi47TC29Jj1G0z+a1lVT1kVWOI
vt6/1I4oG+AI32ZQJnZ18ef1U+oOkGM5AAlNQSDx9t3YrOQcHNTEsxMgfrtcai48
TFe1Z9nnNI+5MOuJFWrYqF0POYenIIMbwaN5oFfNWxYSZ8h9F2c9HD1FGmYbxQE0
nUN/nJlpP5PL5LfuBXI01N8GoHpdE9kJbMyCdQ3Ixj+YN36LxuFFb9F3+GMprreT
BYUlCEzlCmOMWYVmfgWuJ96e79HIIh6JDyBWDlo45bxZ38VVnfg=
=LS5A
-----END PGP SIGNATURE-----
Bump version to v0.0.2

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
1 file changed
tree: 69408fce893532a66314250212a1ac6d3d7b6517
  1. .gitignore
  2. .goosarch
  3. .travis.yml
  4. .traviskey
  5. Dockerfile
  6. Gopkg.lock
  7. Gopkg.toml
  8. LICENSE
  9. Makefile
  10. README.md
  11. VERSION.txt
  12. filter.go
  13. gmail.go
  14. main.go
  15. vendor/
  16. version/
README.md

1up

Travis CI GoDoc Github All Releases

A custom Gmail spam filter bot.

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.