Attempt to improve the reply messages formatting

This commit is contained in:
Samy Dindane 2014-03-30 23:32:21 +02:00
parent 700e3d1f17
commit d7ca19ccb2

View File

@ -2654,8 +2654,9 @@ class MyForm(QtGui.QMainWindow):
self.ui.comboBoxSendFrom.setCurrentIndex(currentIndex)
else:
self.ui.comboBoxSendFrom.setCurrentIndex(0)
self.ui.textEditMessage.setText('\n\n------------------------------------------------------\n' + unicode(messageAtCurrentInboxRow, 'utf-8)'))
messageAtCurrentInboxRow = "".join(["> " + line + "\n" for line in messageAtCurrentInboxRow.split("\n")])
self.ui.textEditMessage.setText('\n\n' + str(fromAddressAtCurrentInboxRow) + ' wrote:\n' + unicode(messageAtCurrentInboxRow, 'utf-8)'))
if self.ui.tableWidgetInbox.item(currentInboxRow, 2).text()[0:3] in ['Re:', 'RE:']:
self.ui.lineEditSubject.setText(
self.ui.tableWidgetInbox.item(currentInboxRow, 2).text())