mail-mime-parser icon indicating copy to clipboard operation
mail-mime-parser copied to clipboard

empty utf8 quoted not parsed correctly

Open markusramsak opened this issue 4 years ago • 1 comments

This is the simplified original version of the email. At the line beginning with "To:" there is an expression "=?utf-8?Q??=" which should simply be parsed to an empty string. Instead it keeps as it is.

Please parse =?utf-8?Q??= to an empty string.

Delivered-To: [email protected]
Date: Thu, 10 Sep 2020 09:29:57 -0400
To: =?utf-8?Q??= <[email protected]>
From: From <[email protected]>
Subject: Newsletter
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: Quoted-Printable

markusramsak avatar Jan 05 '21 13:01 markusramsak

Top of my head, this should just be a matter of changing the regex pattern for the mime-encoded part matcher to use a '*' instead of '+' for matching. If someone gets to it before me, feel free to submit a pull request.

zbateson avatar Jan 05 '21 19:01 zbateson