thunderbird / thunderbird/thunderbird-android

HTML Multipart Rendered as Attachment

Open
#7,054 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
14k
Forks
2.8k
Avg merge
3d 3h
Merged PRs (30d)
57

Description

Checklist
  • I have used the search function to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.
App version

6.707

Where did you get the app from?

Google Play

Android version

13 - Lineage OS

Device model

Pixel 4a

Steps to reproduce
Date: Wed, 5 Jul 2023 18:47:05 -0400 (EST)
From: Home Depot <ContactUs@homedepot.com>
Subject: Your Refund for Order #XXXXXX Has Been Issued
To: <XXXXXX>
Message-ID: <XXXXXX@homedepot.com>
MIME-Version: 1.0
Importance: Normal
X-Priority: 3 (Normal)
X-Mailer: SAP NetWeaver 755
Content-Type: multipart/related;
 boundary="=_42010A2965331EEE86F0BBA9E95E7A89";
 type="text/html"
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: XXXXXX:XXXXXX|XXXXXX:XXXXXX
X-MS-Office365-Filtering-Correlation-Id: XXXXXX
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
	XXXXXX
X-Forefront-Antispam-Report:
	XXXXXX
X-OriginatorOrg: homedepot.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 22:47:07.0354
 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: XXXXXX
X-MS-Exchange-CrossTenant-Id: XXXXXX
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=XXXXXX;Ip=[XXXXXX];Helo=[homedepot.com]
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-DM3NAM02FT011.eop-nam02.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: XXXXXX

--=_42010A2965331EEE86F0BBA9E95E7A89
Content-Disposition: inline;
 filename="sapwebform.htm"
Content-Type: text/html;
 charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Description: Barcodeimage

<!doctype html>
<html xmlns=3D"http://www.w3.org/1999/xhtml" xmlns:v=3D"urn:schemas-microso=
ft-com:vml" xmlns:o=3D"urn:schemas-microsoft-com:office:office">
XXXXXX
</html>

--=_42010A2965331EEE86F0BBA9E95E7A89
Content-ID: <orderno.bmp>
Content-Type: image/bmp;
 name="orderno.bmp"
Content-Transfer-Encoding: base64

XXXXXX
--=_42010A2965331EEE86F0BBA9E95E7A89--

Expected behavior

The message rendered as HTML with referenced image displayed.

Actual behavior

The HTML was displayed as an attachment.

Logs

k9mail-logs.txt

Screenshot_20230706-082919_K-9 Mail

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the supplied multipart/related message and reviewing k9mail-logs.txt to trace why the HTML part is treated as an attachment. Done means the message renders as HTML and displays its referenced image instead of exposing the HTML part as an attachment.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.