jbostoen / itop-jb-mail-to-ticket-automation-v2

Originally a fork of Combodo's Mail to Ticket Automation, enriched with some new features. Also contains some bug fixes.
https://jeffreybostoen.be
6 stars 3 forks source link

Enhancement: UIDL should always be using the decoded value #48

Closed jbostoen closed 3 months ago

jbostoen commented 3 months ago

As of now, for encoded and/or multi-line messages, only "Subject" and "References" are considered.

But, during debugging or troubleshooting, you may notice that the UIDL (if set to Message-ID) is sometimes not properly decoded at all.

This seems to be caused by the constructor of MessageFromMailbox. Here, the UIDL will be the original (non-decoded) value. This is because the parent class RawEmailMessage takes the same argument.

This won't lead to a functional issue, but just doesn't look very nice.


Subject: =?UTF-8?Q?iTop=20pro=20extension:=20New=20version=20available=20-=20?=
 =?UTF-8?Q?Multi=20Factor=20Authentication=20(TOTP)=202.7.240526?=
MIME-Version: 1.0
Content-Type: text/html;
 charset="UTF-8"
Content-Transfer-Encoding: 8bit
References: <iTop_JBExtensionRelease_49@5fb30ca858d3c8dca82345b8b894da38-production.openitop.org>
Message-ID: =?UTF-8?Q?iTop=5FJBExtensionRelease=5F49=5F1719315913.643585@5fb30ca858d3c8dca82345b8b894da38-production.openitop.org?=
In-Reply-To: =?UTF-8?Q?<iTop=5FJBExtensionRelease=5F49@5fb30ca858d3c8dca82345b8b894da38-production.openitop.org>?=
jbostoen commented 3 months ago

Before upgrading: Make sure to clean out the mailbox folder!