diff --git a/client.zip b/client.zip new file mode 100644 index 0000000..fd8fd00 Binary files /dev/null and b/client.zip differ diff --git a/client/client.py b/client/client.py index eb94c87..f9d7217 100644 --- a/client/client.py +++ b/client/client.py @@ -3,6 +3,7 @@ import os import sys from socket import * from PyQt5.Qt import * +from datetime import datetime from main_window_ui import Ui_MainWindow @@ -65,7 +66,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): sp2 = msg.find(':', sp1 + 1) msg = "{}@{}:\n{}".format(msg[sp1 + 1:sp2], msg[:sp1], msg[sp2 + 1:]) - self.txtList.append(msg) + self.txtList.append(str(datetime.now()) + " " + msg) self.txtList.moveCursor(QTextCursor.End) diff --git a/mail/mail.py b/mail/mail.py index ab6c52f..c4f1c73 100644 --- a/mail/mail.py +++ b/mail/mail.py @@ -70,6 +70,7 @@ class LogWindow(QDialog, Ui_Dialog): ss.sendall(msg.encode()) self.textBrowser.append("C: " + msg) self.textBrowser.append("S: " + ss.recv(1 << 20).decode()) + self.textBrowser.moveCursor(QTextCursor.End) comm("HELO " + servaddr) comm("AUTH LOGIN")