script.module.buggalo
script.module.buggalo copied to clipboard
Issues with smtp and str decode
Hi, thanks for great addon:
1. SMTP issue:
03:09:17 T:3412 ERROR: File "E:\Program Files (x86)\Kodi\system\python\Lib\smtplib.py", line 724, in sendmail
03:09:17 T:3412 ERROR: raise SMTPSenderRefused(code, resp, from_addr)
03:09:17 T:3412 ERROR: SMTPSenderRefused: (553, '5.1.2 The sender address <Buggalo> is not a valid RFC-5321 address. n1si5265611wju.284 - gsmtp', 'Buggalo')
2. String decoding:
File "C:\Users\decak\AppData\Roaming\Kodi\addons\script.module.buggalo\lib\buggalo_client.py", line 152, in emailData
03:13:51 T:984 ERROR: body += '<tr><td>%s</td>' % key
03:13:51 T:984 ERROR: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 356: ordinal not in range(128)
Patch: https://github.com/twinther/script.module.buggalo/pull/5