This commit is contained in:
Taylor Wilsdon
2026-03-16 10:44:33 -04:00
parent b0784b798c
commit a7a10deb78

View File

@@ -38,9 +38,14 @@ GMAIL_REQUEST_DELAY = 0.1
HTML_BODY_TRUNCATE_LIMIT = 20000
GMAIL_METADATA_HEADERS = [
"Subject", "From", "To", "Cc",
"Message-ID", "In-Reply-To", "References",
"Date"
"Subject",
"From",
"To",
"Cc",
"Message-ID",
"In-Reply-To",
"References",
"Date",
]
LOW_VALUE_TEXT_PLACEHOLDERS = (
"your client does not support html",
@@ -80,8 +85,6 @@ class _HTMLTextExtractor(HTMLParser):
return " ".join("".join(self._text).split())
def _html_to_text(html: str) -> str:
"""Convert HTML to readable plain text."""
try: