• Stars
    star
    362
  • Rank 115,290 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 3 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Cut down spam in your Gmail Inbox

hatchet_logo

hatchet

Cut down spam in your Gmail Inbox

Introduction

Hatchet is a tool to help you manage/prune your Email Inbox. As it processes your inbox, it will keep track the unique sender email addresses and the number of emails from each sender. It will also search the email headers and body for "unsubscribe" links.

Once Hatchet finishes its work, it will generate a spreadsheet that you can use to quickly unsubscribe from the most annoying mailing lists spamming your inbox.

Getting Started

Windows/Mac/Linux Binaries

You can download the latest version of hatchet by visting the following url: https://github.com/analogj/hatchet/releases Download the relevant binary, then run it:

# windows 
hatchet-windows-amd64.exe report \
    --imap-hostname=imap.gmail.com \
    [email protected] \
    --imap-password=xxxxxxx


# macos
hatchet-darwin-amd64 report \
    --imap-hostname=imap.gmail.com \
    [email protected] \
    --imap-password=xxxxxxx

# linux
hatchet-linux-amd64 report \
    --imap-hostname=imap.gmail.com \
    [email protected] \
    --imap-password=xxxxxxx
    

Run via Docker

docker run --rm -v `pwd`:/out/ \
    ghcr.io/analogj/hatchet:latest report \
    --output-path="/out/sender_report.csv" \
    --imap-hostname=imap.gmail.com \
    [email protected] \
    --imap-password=xxxxxxx

Run from Source

go run cmd/hatchet/hatchet.go report \
    --imap-hostname=imap.gmail.com \
    [email protected] \
    --imap-password=xxxxxxx

Google Account Authentication & App Passwords

If an app or site doesn’t meet Google's security standards, Google might block anyone who’s trying to sign in to your account from it. Less secure apps can make it easier for hackers to get in to your account, so blocking sign-ins from these apps helps keep your account safe.

Less secure apps & your Google Account

By default Google will block third party applications from accessing your Gmail account via username + password. To use hatchet with your Gmail account, you'll need to authenticate to your account by doing one of the following

Option 1: Enable "Less secure app" access

  • Go to the Less secure app access section of your Google Account. You might need to sign in.
  • Turn Allow less secure apps on.

Option 2: Create an App Password (required for 2FA protected accounts)

If you use 2-Step-Verification and get a "password incorrect" error when you sign in, you can try to use an App Password.

An App Password is a 16-digit passcode that gives a less secure app or device permission to access your Google Account. App Passwords can only be used with accounts that have 2-Step Verification turned on.

https://support.google.com/accounts/answer/185833

  • Go to your Google Account Settings Page.
  • Select Security.
  • Under "Signing in to Google," select App Passwords. You may need to sign in. If you don’t have this option, it might be because:
    • 2-Step Verification is not set up for your account.
    • 2-Step Verification is only set up for security keys.
    • Your account is through work, school, or other organization.
    • You turned on Advanced Protection.
  • At the bottom, choose Select app and choose Mail and then Select device and choose Other, type in "hatchet" and then Generate.
  • The App Password is the 16-character code in the yellow bar. Copy this text, store it securely in a password manager or similar.
  • Tap Done.

Use your credentials with hatchet

Now that you have the correct credentials to authenticate to your Gmail account with Hatchet, you can run the tool locally.

hatchet report \
    --imap-hostname=imap.gmail.com \
    [email protected] \
    --imap-password=[gmail account password OR app password]

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

Jason Kulatunga - Initial Development - @AnalogJ

License

More Repositories

1

scrutiny

Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds
Go
4,678
star
2

lexicon

Manipulate DNS records on various DNS providers in a standardized way.
Python
1,454
star
3

gitmask

Contribute Code Anonymously
Python
449
star
4

dropstore-ng

Dropbox Datastore bindings for AngularJS
JavaScript
243
star
5

drawbridge

manage SSH access to multiple applications/environments protected by bastion servers
Go
219
star
6

matchmedia-ng

matchmedia wrapper for angularjs
JavaScript
137
star
7

capsulecd

Continuous Delivery for automating package releases (npm, cookbooks, gems, pip, jars, etc)
Go
96
star
8

docker-cron

`cron` base images for various distros.
Dockerfile
82
star
9

justvanish

Tell databrokers to F#@% Off. Your data is your data, they shouldn't be monetizing your personal information without your knowledge.
Go
69
star
10

you-dont-know-jenkins-init

Groovy
58
star
11

lantern

Peer into your requests.
Go
23
star
12

aws-api-gateway-letsencrypt

AWS Api Gateway Custom Certificates using Letsencrypt
Python
20
star
13

you-dont-know-jenkins

Code/Snippets for Jenkins Automation blog post.
Ruby
20
star
14

goodreads.js

GoodReads NodeJS API
JavaScript
12
star
15

zRSSFeed

zRSSFeed by Zazar, modified to support multiple RSS Feeds
JavaScript
11
star
16

DeDRM.Net

No Longer Maintained, use https://github.com/apprenticeharper/DeDRM_tools
Python
11
star
17

Wix3.6Toolset

WixToolset 3.6 RC0 Branch + Client Tools DLL
C#
9
star
18

tentacle

Retrieve your secrets from wherever they live. Vault/Cyberark/Thycotic/Keychain/Keyring/etc.
Go
8
star
19

quietthyme.plugin

Quietthyme Calibre Plugin
Python
8
star
20

letsencrypt-http01-docker-nginx-example

Dockerfile which automates Letsencrypt using Nginx
Shell
7
star
21

you-dont-know-jenkins-job-dsl

Jenkins Job DSL example for "You Dont Know Jenkins" blog series
Groovy
7
star
22

bedrock

Dockerfile
7
star
23

pubsub-emitter

sails socket hook to communicate with a standalone socket.io server.
JavaScript
5
star
24

docker-jenkins-inbound-agent-runtimes

Language specific Jenkins inbound agent containers. See https://github.com/jenkinsci/docker-inbound-agent/
Dockerfile
4
star
25

GoodReadsSharp

GoodReadsSharp is a C# client library for the GoodReads API. Used to power QuietThyme.com goodreads authentication and integration.
C#
4
star
26

pouchdb-ng

PouchDB AngularJS Bindings
JavaScript
3
star
27

Iris

in browser epub + mobi ebook viewer,powered by monocle + js-epub
JavaScript
3
star
28

web-zipper

Online Zip File generator. Will generate a zip file when given a list of urls.
2
star
29

obscenity

generic password retrieval library
2
star
30

novel-concepts

2
star
31

Veil

Angular Application that allows you to securely encrypt and retrieve your SSH keys from Dropbox storage.
JavaScript
2
star
32

go-util

utility functions for go.
Go
2
star
33

docker-hub-matrix-builds

Test repo for docker hub matrix builds. See https://blog.thesparktree.com/docker-hub-matrix-builds
Shell
2
star
34

sunlight

Expose your Keystore (or Keychain) secrets as environmental variables.
Go
1
star
35

you-dont-know-jenkins-dynamic-kubernetes-slaves

Setting up a Jenkins + Kubernetes lab environment.
Dockerfile
1
star
36

jquery-unison

JQuery Plugin that aggregates multiple Google Calendars
JavaScript
1
star
37

scrutiny_windows_test

Dockerfile
1
star
38

node-angular-less-seed

NodeJS + AngularJS + EJS Templates + Bootstrap/Less Seed
JavaScript
1
star
39

lucid-wix

Lucid-Wix is a C# library that creates fluent bindings to Wix 3.7
C#
1
star
40

flywheel

Preserve your productivity. Setup scripts for your new Mac.
Shell
1
star
41

sails-passport-authentication

Sails 0.9.x example using passport authentication, Google, LinkedIn, Facebook, Twitter.
JavaScript
1
star
42

sails-helm

Sails.js activeadmin style administration application.
1
star
43

share-plates-beta

JavaScript
1
star
44

recall

Google Chrome extension for Mozilla SyncServer
1
star
45

you-dont-know-jenkins-configuration-as-code

Dockerfile
1
star
46

jason-is-baller

The source for JasonIsABaller.com
1
star
47

kickback

Generates a Google Sheet that can be used to easily split trip expenses between friends. Based on Chi's amazing Owing Sheet.
JavaScript
1
star
48

banditio.engine

Python websocket server implementing the bare minimum Chrome Remote Debugging Protocol (all notifications are pushed via the banditio.proxy)
Python
1
star
49

docker-consul-template-haproxy

forked/merged from https://github.com/bluk/docker-consul-template-haproxy-app and https://github.com/bluk/docker-consul-template-haproxy
Shell
1
star
50

npm_analogj_test

Test npm package for use with capsulecd.
JavaScript
1
star