diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index a223a1ca5a..5ec57efad1 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -52,6 +52,7 @@ import com.sun.mail.util.MessageRemovedIOException; import org.apache.commons.compress.archivers.ArchiveEntry; import org.apache.commons.compress.archivers.ArchiveInputStream; import org.apache.commons.compress.archivers.ArchiveStreamFactory; +import org.apache.commons.compress.archivers.zip.UnsupportedZipFeatureException; import org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; @@ -3528,7 +3529,11 @@ public class MessageHelper { } } catch (Throwable ex) { Log.e(ex); - db.attachment().setWarning(local.id, Log.formatThrowable(ex)); + // Unsupported feature encryption used in entry ... + if (ex instanceof UnsupportedZipFeatureException) + db.attachment().setWarning(local.id, ex.getMessage()); + else + db.attachment().setWarning(local.id, Log.formatThrowable(ex)); } } }