There may be some corner cases where you just want to forward your email(s) to a Telegram group or just to yourself. This can be very handy when it comes to monitoring solutions in DevOps related scenarios or for smarthome. However, this script allows you to define a dedicated IMAP box and to forward all received mails to Telegram messaging services. Within the current implementation this is designed to run on CentOS/RedHat systems with systemd, but this can be adapted to run on all other systems, too. After setting up IMAP2Telegram watches within a given IMAP account for new mails and forwards them to a defined Telegram user/group.
GitHub: IMAP2Telegram (source code)