Automatically scan SMTP mailboxes and post emails to a Discord webhook

Mark all emails as Read before using this bot. Currently there is nothing stopping this bot from flying way past the discord rate limit.
Use ghcr.io/ashcorr/discord-mail-webhook:latest
Config is managed through environment variables.
| Variable Name | Description |
|---|---|
| IMAP_HOST | IMAP hostname for mailbox eg mail.google.com |
| IMAP_USERNAMES | Comma delimited usernames, eg [email protected],[email protected] |
| IMAP_PASSWORDS | Comma delimited usernames, eg password1,password2 |
| DISCORD_WH_URL | Discord webhook url |
| Name | Description | Default |
|---|---|---|
| IMAP_PORT | IMAP hostname for mailbox eg mail.google.com | 143 |
| IMAP_TLS | Check for valid TLS | true |
| IMAP_MARK_SEEN | Mark emails as seen | true |
| LOG_LEVEL | Log level | info |