awalon / MailToTelegramForwarder

MailToTelegramForwarder is a Python based daemon that will fetch mails from a remote IMAP server and forward them via Telegram API.
GNU General Public License v3.0
40 stars 19 forks source link

MTTF can't send some messages to telegram (Cannot parse mail: 'int' object has no attribute 'decode') #12

Closed 413xk closed 1 year ago

413xk commented 2 years ago

Once per two-three days I catch this error:

mailToTelegramForwarder[8065]: Mail to Telegram Forwarder: Most recent UID: '2210' mailToTelegramForwarder[8065]: Mail to Telegram Forwarder: Cannot parse mail: 'int' object has no attribute 'decode' [/usr/local/bin/mailToTelegramForwarder:750 in 'parse_mail'] mailToTelegramForwarder[8065]: Mail to Telegram Forwarder: Can't parse mail with UID: '2211'

Mail change status to "SEEN" but is not forwarded to telegram.

This particular letter just the same as previous one (which forwarded successfully).

Any idea how to fix this issue?

awalon commented 1 year ago

Hello, is this still an issue? From error message it could be caused by a deafult Python module. Do you have at least Python 3.11.2 installed?

413xk commented 1 year ago

Yeah, it seems that bug fixed with python update.