diff --git a/gmail/gmail_tools.py b/gmail/gmail_tools.py index fdd2327..2d817f3 100644 --- a/gmail/gmail_tools.py +++ b/gmail/gmail_tools.py @@ -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: