diff --git a/lib/Model/IMAPMessage.php b/lib/Model/IMAPMessage.php index 0b3c38f505..118b643634 100644 --- a/lib/Model/IMAPMessage.php +++ b/lib/Model/IMAPMessage.php @@ -393,7 +393,10 @@ private function loadMessageBodies(): void { */ private function getPart(Horde_Mime_Part $p, $partNo): void { // Regular attachments - if ($p->isAttachment() || $p->getType() === 'message/rfc822') { + $isAttachment = ($p->isAttachment() || $p->getType() === 'message/rfc822') && + !in_array($p->getType(), ['application/pgp-signature', 'application/pkcs7-signature', 'application/x-pkcs7-signature']); + + if ($isAttachment) { $this->attachments[] = [ 'id' => $p->getMimeId(), 'messageId' => $this->messageId,