Closed Bug 2048208 Opened 3 months ago Closed 2 months ago

Thunderbird issues IMAP APPEND with UTF8 flag but UTF8=APPEND not advertised

Categories

(MailNews Core :: Networking: IMAP, defect)

Thunderbird 154
defect

Tracking

(Not tracked)

RESOLVED MOVED

People

(Reporter: wullinger, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Steps to reproduce:

  • Install a new IMAP Server with cyrus imapd 3.12.1.
  • Create an account with a mailbox on the server in Thunderbird
  • Copy a message from another IMAP account to a mailbox on the new account

Actual results:

The copy operation fails with

BAD Invalid argument in Append command

Thunderbird issues the IMAP commands

ENABLE UTF8=ACCEPT
append "INBOX" (<flags>) "17-Jun-2026 12:38:33 +0200" UTF8 (~<literal>).

The UTF8 flag to APPEND is rejected by cyrus imapd. Following RFC5738, this seems to be correct. The server advertises UTF8=ACCEPT and not UTF8=APPEND (nor UTF8=ONLY or UTF8=ALL).

Expected results:

The message is copied to the destination folder

For cyrus imapd a workaround is to set

suppress_capabilities: UTF8=ACCEPT
in imapd.conf to avoid the IMAP server advertising UTF8 support.

Please provide an IMAP log. See https://wiki.mozilla.org/MailNews:Logging

Summary: IMAP APPEND with UTF8 flag but UTF8=APPEND not advertised → Thunderbird issues IMAP APPEND with UTF8 flag but UTF8=APPEND not advertised

Well, UTF8=APPEND is from an outdated spec. See https://datatracker.ietf.org/doc/html/rfc6855.html#section-9

Thunderbird could avoid doing that if there are no non-ascii chars I suppose.

(In reply to Magnus Melin [:mkmelin] from comment #4)

Well, UTF8=APPEND is from an outdated spec. See https://datatracker.ietf.org/doc/html/rfc6855.html#section-9

Thanks for the pointer. Mention of UTF8=APPEND is by me. Cyrus never advertises it.

It advertises UTF8=ACCEPT, but it seems that this is interpreted in the sense of RFC5738, not RFC6855.
This probably warrants a bug report against cyrus.

Cross-Reference to the issue with Cyrus Imapd: https://github.com/cyrusimap/cyrus-imapd/issues/6078

Blocks: tb153found

The Cyrus bug has been fixed

Status: UNCONFIRMED → RESOLVED
Closed: 2 months ago
Resolution: --- → MOVED

(In reply to Magnus Melin [:mkmelin] from comment #7)

The Cyrus bug has been fixed

Patch dated June 23.

But not yet shipped afaict. https://github.com/cyrusimap/cyrus-imapd/releases shows last release as cyrus-imapd-3.12.2, which was March 29, 2026.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: