Quick hack for excessively long messages

- only process the first MB of a message for GUI purposes
(parsing/rendering)
This commit is contained in:
Peter Šurda 2017-05-14 15:40:35 +02:00
parent 82c3c111b7
commit 660997f8e7
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -128,6 +128,7 @@ class MessageView(QtGui.QTextBrowser):
self.html.reset()
self.html.reset_safe()
self.html.allow_picture = True
self.html.feed(data)
# quick hack to limit excessively compressed messages, limits viewing to first MB of data
self.html.feed(data[0:1048576])
self.html.close()
self.showPlain()