angelos-se / IMAPBot

Telegram bot for watching an IMAP account and sending a message when you receive a new message. (WIP)
MIT License
8 stars 2 forks source link

New Python support (3.x), proxy support #3

Open pasha-zzz opened 4 years ago

pasha-zzz commented 4 years ago

Simple changes for Python 3 and SOCKS5 proxy support (proxy must be moved from main program to config I think, changes for new Python may be in try.... except for backward compatibility). And decode of From field is added too. Firstly needed pip install -U requests[socks] imapbot.txt

pasha-zzz commented 4 years ago

New variant: added html2text and from with name/addr parsing imapbot.txt