thunderbird / thunderbird/thunderbird-android

Not able to include Content-Type: text/calendar in multipart/alternative

Open
#6,137 3 comments 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

5.600

Where did you get the app from?

F-Droid

Android version

8 (Lineage OS)

Device model

Xiaomi Mi5 Plus

Steps to reproduce

As discussed at https://gitlab.com/techbeeat1/jtx/-/issues/277, an Android application sends Intends and creates an email in K9, which has this structure:

Content-Type: multipart/mixed
  Content-Type: multipart/alternative
    Content-Type: text/plain; charset=utf-8
    Content-Type: text/html; charset=utf-8
  Content-Type: text/calendar

The structure shall be instead:

Content-Type: multipart/alternative
  Content-Type: text/plain; charset=utf-8
  Content-Type: text/html; charset=utf-8
  Content-Type: text/calendar

The author of the application says he uses the Android API correctly, and it is the Email application, which does not create the correct MIME structure.

Expected behavior

Not applicable.

Actual behavior

Not applicable.

Logs

Not applicable.

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 Android intent described in this issue and inspect how the email application's MIME structure is assembled. Compare the generated multipart/mixed and multipart/alternative nesting with the requested structure; done means text/calendar is included alongside text/plain and text/html in multipart/alternative.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.