Runnable with both Python3 and Python2, with both PyQt5 and PyQt4 by using Qt.py #2250
|
@ -4179,7 +4179,7 @@ class MyForm(settingsmixin.SMainWindow):
|
|||
('sent', 'ackdata') if folder == 'sent'
|
||||
else ('inbox', 'msgid')
|
||||
), sqlite3.Binary(msgid)
|
||||
)
|
||||
)
|
||||
|
||||
try:
|
||||
message = queryreturn[-1][0].decode("utf-8", "replace")
|
||||
|
|
|
@ -156,5 +156,5 @@ class MsgDecode(object):
|
|||
if subject:
|
||||
subject = subject.splitlines()[0]
|
||||
# Field types should be the same for all message types
|
||||
self.subject = subject.decode('utf-8', 'replace')
|
||||
self.body = body.decode('utf-8', 'replace')
|
||||
self.subject = subject.decode("utf-8", "replace")
|
||||
self.body = body.decode("utf-8", "replace")
|
||||
|
|
Reference in New Issue
Block a user