diff --git a/modules/joex/src/main/scala/docspell/joex/process/ExtractArchive.scala b/modules/joex/src/main/scala/docspell/joex/process/ExtractArchive.scala index ef98b43d..17f90b59 100644 --- a/modules/joex/src/main/scala/docspell/joex/process/ExtractArchive.scala +++ b/modules/joex/src/main/scala/docspell/joex/process/ExtractArchive.scala @@ -93,7 +93,7 @@ object ExtractArchive { archive: Option[RAttachmentArchive] )(ra: RAttachment, pos: Int, mime: MimeType): F[Extracted] = mime match { - case MimeType.ZipMatch(_) if ra.name.exists(_.endsWith(".zip")) => + case MimeType.ZipMatch(_) if ra.name.exists(_.toLowerCase.endsWith(".zip")) => ctx.logger.info(s"Extracting zip archive ${ra.name.getOrElse("")}.") *> extractZip(ctx, archive)(ra, pos) .flatMap(cleanupParents(ctx, ra, archive))