mail-mime-parser
mail-mime-parser copied to clipboard
empty utf8 quoted not parsed correctly
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
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.