Compile:
git clone https://github.com/WAAutoMaton/telegram-mail-bot.git
cd telegram-mail-bot
go mod tidy
go build ./Configure:
mkdir config
touch config/config.jsonEdit the config.json, for example:
{
  "token": "<Your bot token> : string",
  "imapserver": "imap.example.com:993",
  "smtpserver": "smtp.example.com:589",
  "smtphost": "smtp.example.com",
  "username": "[email protected]",
  "password": "Your Mail's Password",
  "uid": "<Your telegram digital ID> : int"
}(Optional) If you want to use proxy:
export http_proxy="Your proxy"Finally
./telegram-mail-botUse /help to get more information.