We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33bb8cb commit 2ad2b8fCopy full SHA for 2ad2b8f
mcp_email_server/emails/classic.py
@@ -208,10 +208,7 @@ def _strip_html(html: str) -> str:
208
except UnicodeDecodeError:
209
text = payload.decode("utf-8", errors="replace")
210
211
- if content_type == "text/html":
212
- body = _strip_html(text)
213
- else:
214
- body = text
+ body = _strip_html(text) if content_type == "text/html" else text
215
# TODO: Allow retrieving full email body
216
if body and len(body) > 20000:
217
body = body[:20000] + "...[TRUNCATED]"
0 commit comments