Skip to content

Subject decoding error results in unusable envelope #266

Description

@printpagestopdf

My testing Imapfolder contains a message with this subject:

Subject: =?UTF-8?Q?Fwd=3A_Re=3A_=5BS4f-koordinationsteam=5D_Leitfaden_f?==?UTF-8?Q?=C3=BCr=2C_Publikationen_in_der_Reihe=2C_=E2=80=9EDiskussionsbeit?==?UTF-8?B?csOkZ2UgZGVyIFM0RuKAnCwgVmVyc2lvbiAwLjk5MywgRGV1dHNjaCwgU3RhbmQ6?==?UTF-8?Q?_21=2E_September_2023?=

By fetching messages envelope (e.g. .fetchMessagesNextPage) this Message prints debug errors that it is unable to encode subject, but does not throw Exception.

But the envelope of this MimeMessage is null, so nothing can be retrieved here.

My guess for the encoding error is, that this subject contains mixed encoding types (Q and B). But eg Thunderbird or ar more basic tool like https://dogmamix.com/MimeHeadersDecoder/ encodes it without error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions