(20241206) Sending the 'Subject' in the mails list now.

This commit is contained in:
2024-12-06 17:09:35 +05:30
parent 906cc16aff
commit 49f7ea13c0
11 changed files with 1285 additions and 2 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ def parse(raw_mail: str | bytes) -> Dict[str, Any]:
# in which to render the contents of the page.
parts = [
{
"no": None,
"partNo": None,
"offset": max(
parsed_mail.message_as_string.find(t),
parsed_mail.message_as_string.find(base64.b64encode(t.encode()).decode())
@@ -143,7 +143,7 @@ def parse(raw_mail: str | bytes) -> Dict[str, Any]:
} for h in parsed_mail.text_html
]
parts = sorted(parts, key = lambda x: x["offset"])
for i, p in enumerate(parts): p["no"] = i
for i, p in enumerate(parts): p["partNo"] = i
# Get the unformatted text from everything in the mail:
unformatted_text = []