diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java
index 4d7f12b473..514c42bab4 100644
--- a/app/src/main/java/eu/faircode/email/MessageHelper.java
+++ b/app/src/main/java/eu/faircode/email/MessageHelper.java
@@ -1464,7 +1464,8 @@ public class MessageHelper {
if (TextUtils.isEmpty(charset)) {
//
//
- Document d = JsoupEx.parse(result);
+ String excerpt = result.substring(0, Math.min(1000, result.length()));
+ Document d = JsoupEx.parse(excerpt);
for (Element meta : d.select("meta")) {
if ("Content-Type".equalsIgnoreCase(meta.attr("http-equiv"))) {
try {