|
|
|
@ -269,15 +269,15 @@ class MailRoom(Bureau):
|
|
|
|
|
|
|
|
|
|
for msgid, data in resp.items():
|
|
|
|
|
msg = {}
|
|
|
|
|
env = data["ENVELOPE"]
|
|
|
|
|
env = data[b"ENVELOPE"]
|
|
|
|
|
|
|
|
|
|
msg["msgid"] = str(msgid)
|
|
|
|
|
sender = env.from_[0]
|
|
|
|
|
msg["fromaddr"] = sender.mailbox + "@" + sender.host
|
|
|
|
|
msg["fromname"] = sender.name
|
|
|
|
|
msg["date"] = data["INTERNALDATE"]
|
|
|
|
|
msg["size"] = data["RFC822.SIZE"]
|
|
|
|
|
msg["subject"] = env.subject
|
|
|
|
|
msg["fromaddr"] = str(sender.mailbox) + "@" + str(sender.host)
|
|
|
|
|
msg["fromname"] = str(sender.name)
|
|
|
|
|
msg["date"] = str(data[b"INTERNALDATE"])
|
|
|
|
|
msg["size"] = str(data[b"RFC822.SIZE"])
|
|
|
|
|
msg["subject"] = str(env.subject)
|
|
|
|
|
|
|
|
|
|
msgs.append(msg)
|
|
|
|
|
|
|
|
|
|