(20241206) Sending the 'Subject' in the mails list now.
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user