question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`◆?` charcter appears in the subject when it has multiple MIME lines

See original GitHub issue

Describe the bug

Graphical character ( + ?) appears in the subject of some mails written in Japanese language.

To Reproduce

Post a mail with subject like:

Subject: =?ISO-2022-JP?B?GyRCRnxLXDhsJEhGfEtcOGwkSEZ8S1w4bCROJUElJyVDGyhC?=
 =?ISO-2022-JP?B?GyRCJS8bKEI=?=

Current K-9 shows 日本語と日本語と日本語のチェッ◆ク on both tray list mode and mail content mode.

Expected behavior Though the example subject has a newline, this should be parsed as one-line ‘日本語と日本語と日本語のチェック’ by MIME decoding rule for subject. It looks current K-9 simply trys to show (unexpected) newline char.

Screenshots Tray mode Screenshot_20211030-123812

Content mode has same problem also Screenshot_20211030-123822

Environment (please complete the following information):

  • K-9 Mail version: 5.904
  • Android version: 12
  • Device: Google Pixel 6
  • Account type: IMAP

Additional context It seems same as #3622. I’m not sure what was done by ‘Fixed in master’. (Because I hadn’t used K-9 mail since 2019, I didn’t know it was fixed at that time.)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kmutocommented, Nov 29, 2021

I confirmed this issue was fixed in v5.905. Thank you! 😄

1reaction
cketticommented, Nov 3, 2021

Thunderbird ran into the same problem: https://bugzilla.mozilla.org/show_bug.cgi?id=1374149

I’m adopting their fix for K-9 Mail.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`◇?` charcter appears in the subject when it has multiple MIME lines ...
Describe the bug Graphical character (◇ + ?) appears in the subject of some mails written in Japanese language. To Reproduce Post a...
Read more >
long MIME encoded-word subject lines appear as a single
Description of problem: alpine-1.10 displays the subject line as a single '=' character if the subject line is long and in MIME encoded-word...
Read more >
JavaMail API getSubject(), subject has multiple "=?utf-8?B?~?="
The MIME spec (RFC 2047) requires that each encoded word contain complete characters: Each 'encoded-word' MUST represent an integral number of characters. A ......
Read more >
Chapter 14: Mime, Pantomime, and Clowning
He uses pantomime when he performs the famous scene of his character,. Bip, at a party, but he uses mime when he produces...
Read more >
Special Characters in Email Subject Lines: Good or Bad?
How special characters appear in different email subject lines in an inbox. These special characters go by many names: glyphs, ideographs, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found