Cut down spam in your Gmail Inbox
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.
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 \
--imap-username=xxxxx@gmail.com \
--imap-password=xxxxxxx
# macos
hatchet-darwin-amd64 report \
--imap-hostname=imap.gmail.com \
--imap-username=xxxxx@gmail.com \
--imap-password=xxxxxxx
# linux
hatchet-linux-amd64 report \
--imap-hostname=imap.gmail.com \
--imap-username=xxxxx@gmail.com \
--imap-password=xxxxxxx
docker run --rm -v `pwd`:/out/ \
ghcr.io/analogj/hatchet:latest report \
--output-path="/out/sender_report.csv" \
--imap-hostname=imap.gmail.com \
--imap-username=xxxxx@gmail.com \
--imap-password=xxxxxxx
go run cmd/hatchet/hatchet.go report \
--imap-hostname=imap.gmail.com \
--imap-username=xxxxx@gmail.com \
--imap-password=xxxxxxx
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.
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
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.
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 \
--imap-username=xxxxx@gmail.com \
--imap-password=[gmail account password OR app password]
We use SemVer for versioning. For the versions available, see the tags on this repository.
Jason Kulatunga - Initial Development - @AnalogJ