mail icon indicating copy to clipboard operation
mail copied to clipboard

Attachment not visible

Open github-k8n opened this issue 10 months ago • 2 comments

Steps to reproduce

Received dmarc-report from google does not show attachment. Same issue as https://github.com/nextcloud/mail/issues/9957 (that one was closed unfortunately ..)

Showing below the redacted body of the email... let me know if that is sufficient.

[..some other headers, like Received, ARC and DKIM headers..]
MIME-Version: 1.0
X-Received: by 2002:a05:620a:2792:b0:7c0:79c3:fd2a with SMTP id
 af79cd13be357-7c0cef66bd5mr2337314985a.43.1740481224479; Tue, 25 Feb 2025
 03:00:24 -0800 (PST)
Date: Mon, 24 Feb 2025 15:59:59 -0800
Message-ID: <[email protected]>
Subject: Report domain: REDACTED Submitter: google.com Report-ID: 13446300399950255636
From: [email protected]
To: REDACTED
Content-Type: application/zip; 
	name="google.com!REDACTED!1740355200!1740441599.zip"
Content-Disposition: attachment; 
	filename="google.com!REDACTED!1740355200!1740441599.zip"
Content-Transfer-Encoding: base64

REDACTED, base64 endcoded zip file with xml insideXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Expected behavior

While the list overview shows a paper clip to indicate an attachment, if you open the email it does not show anything, just the title.

My suspicion is that this might be due to the fact that the email does not contain any text body, just the attachment.

Actual behavior

Show attachment

Mail app version

4.2.2

Nextcloud version

30.0.6

Mailserver or service

postfix / dovecod

Operating system

Gentoo Linux

PHP engine version

PHP 8.3

Nextcloud memory caching

No response

Web server

Nginx

Database

PostgreSQL

Additional info

No response

github-k8n avatar Feb 26 '25 07:02 github-k8n

Hi @github-k8n,

Thanks for your bug report 👍

I'm able to reproduce with a sample message like:

Return-Path: <[email protected]>
Received: from localhost (unknown [172.17.0.1])
        by 2a1621b014d0 (Mailpit) with SMTP
        for <[email protected]>; Wed, 26 Feb 2025 12:19:31 +0100 (CET)
From: [email protected]
To: [email protected]
Subject: Email with attachment only
Message-ID: <20250226111930.Horde.Ep3d7BIAaO5NYZIz2UdjBZx@pc>
User-Agent: Horde Application Framework 5
Date: Wed, 26 Feb 2025 11:19:30 +0000
Content-Type: text/x-patch; name=some.patch
MIME-Version: 1.0
Content-Disposition: attachment; filename=some.patch

hello world

(generated with: https://github.com/kesselb/weird-emails/blob/main/attachment_only.php)

kesselb avatar Feb 26 '25 11:02 kesselb

Hey,

I've also noticed that with a regular plain-text email (containing just normal text in the message body ) the attached PDF (1.2MB) did not appear in the Nextcloud webmail app (Horde), while it showed up just fine in other clients like Roundcube (on a separate server).

Samgroot avatar May 20 '25 21:05 Samgroot