https://github.com/jdcasey/unsubmail
Script to go through commercial mails in an IMAP mailbox and unsubscribe automatically wherever possible
https://github.com/jdcasey/unsubmail
Last synced: 3 months ago
JSON representation
Script to go through commercial mails in an IMAP mailbox and unsubscribe automatically wherever possible
- Host: GitHub
- URL: https://github.com/jdcasey/unsubmail
- Owner: jdcasey
- Created: 2020-05-31T16:20:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T16:37:25.000Z (about 6 years ago)
- Last Synced: 2026-03-11T22:59:09.482Z (4 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unsubscriber for IMAP
This application goes through a nominated mailbox on an IMAP server, looking for emails with unsubscribe links. Then, it does its best to actually unsubscribe you from those emails.
## Configuration
By default, this will live in `$HOME/.config/unsubmail/config.yaml`. The configuration should look like this:
```
server: imap.myhost.com
user: me@nobody.com
password: pass:my-secret-password-key
mailboxes:
- INBOX.COMMERCIAL
```
**NOTE:** It's possible to use the linux `pass` command to store the password. If you set the password with the format `pass:some-key`, the application will use the `pass some-key` command to retrieve it. Otherwise, you're free to use a plaintext password here.
## Running
`unsubmail [-c /path/to/alt/config] [-C nn]`
If you use `-C nn`, then only at most the latest `nn` messages will be processed.