nextcloud / nextcloud/mail

Unicode tags not properly supported

Open
#10,159 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Steps to reproduce
  1. Create tag/keyword/label in a different app (SnappyMail or Thunderbird)
  2. Open NC Mail app
Expected behavior

See tags like "🧪" or "ກ ຂ ຄ"

Actual behavior

afbeelding

Vice-versa
  1. Create tag/keyword/label in NC Mail app
  2. Open in a different app

SnappyMail shows:
afbeelding
Thunderbird can't handle them.

Mail app version

3.7.8

Details

IMAP 4.1 uses a modified version of UTF-7
IMAP 4.2 uses UTF-8

TAG3 SELECT "INBOX"
* FLAGS (\Answered … &2D7d6g-)

With NC Mail created tag

TAG3 SELECT "INBOX"
* FLAGS (\Answered … &2D7d6g- $&2d7d6g-)

NC Mail creates the invalid $&2d7d6g- and can't decode &2D7d6g-

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

The issue provides no file or test entry point. Start by tracing the IMAP tag and flag handling described in the reproduction, comparing modified UTF-7 decoding with UTF-8 behavior. Done means Unicode tags such as "🧪" and "ກ ຂ ຄ" round-trip correctly between NC Mail and other IMAP clients without invalid encoded flags.

Written by the indexing model from the issue text.

Assessment

Domain
backend
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.