v0.0.3
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAluqR6sACgkQGPNoXAAi
v/NHIQ//dPr3vy+VX+dFX47F/DpO4ZLAaMnnYuGGVCElFyasJdYgTnThnl+ehnEm
tzWna+GqutrJDNClOZ+/zig1LEstSM+pHiukpGiOy8LFSob+LjLXj042j+SGG7nE
3Rk1MqWfn8uF1pUMRaIr2s1EIDt3ufJKZVS9jP4sefs9xEI90R0P11/rdMhxIQ9U
xjnHof+KUaDPP0QVUr/oBZwmUxSfYu7GVfc9C50NXpZAgLBRxJnh2Sq+J0X/nF55
9AE+nzac/703qVLXmcEvoQSS7fXR9STqukwLQjoehD1c8RhZGvMkGTJJKJIQG4cG
XqnsOpCbIuiFO0D3u+FpItN6BQgfx4iJ6vxjKrVdhy/BkRyA7pPVhv3REvu6cJze
nrG7uC3HgsJWuq+Ha5RU66kBbIj1Sj5rKgTAyZTJi8E9Vp1hlr5cqtFvz8us7IgL
wVVT6mNpIp/pPFq0F59fftbUWaIQ2+pSbpok1/s2Z4hiRKScA2fkUQK18T6u+VfU
KOwN0BcJbDEY3HYH/JFQjrKPUqply2/mDGXt0yAItygXo0QYgIXr4kdeOZoi1J+9
RFQcTqQuQ1otGZB1G7y2FCPUS5XA65xepMC+h7JFtvNEQs9+gmGeGhBFCUdZmNnt
JdUZG4KfYb+2XIKcyeJRaUDf78Gg3KmPkdoGO3dg7ZqzDcH1BwQ=
=SsxK
-----END PGP SIGNATURE-----
Bump version to v0.0.3

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
1 file changed
tree: e6a5ce1f8f0e53a702a6952d2402850ea6a868c3
  1. .gitignore
  2. .goosarch
  3. .travis.yml
  4. .traviskey
  5. Dockerfile
  6. LICENSE
  7. Makefile
  8. README.md
  9. VERSION.txt
  10. basic.mk
  11. filter.go
  12. gmail.go
  13. go.mod
  14. go.sum
  15. main.go
  16. vendor/
  17. 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.