No priotity-mapping from email header, every ticket has default value (30)

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

Post Reply
mworks
Posts: 5
Joined: 01 Apr 2014, 13:04

No priotity-mapping from email header, every ticket has default value (30)

Post by mworks »

Hello,

The priorities from my email header will not be mapped; every ticket is created with the default priority of 30. I tried to config for X-Priority and also for Importance. Thanks for help.
Regards

Configuration:

MantisBT-Version 2.27.1
Schema213
PHP 8.3.24
Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
mysqli
10.11.13, 10.11.13-MariaDB-log

Plugin Version:
0.11.0-DEV

Config Prio Options -> Yes

5 => '20',
4 => '20',
3 => '30',
2 => '40',
1 => '50',
0 => '10',



Email-Header:

Received: from xxxxxxxxxxxxx by
xxxxxxxxxxxx with mapi id
14.03.0513.000; Thu, 21 Aug 2025 10:19:40 +0200
Content-Type: application/ms-tnef; name="winmail.dat"
Content-Transfer-Encoding: binary
From: "Milde, Stephan" <milde@rundp.de>
To: xxxxxxxxxxxxxx
Subject: Priority-Test
Thread-Topic: Priority-Test
Thread-Index: AdwSdEjcSKFjY8c+ROqyTpCeRjZ6mw==

Importance: high
X-Priority: 1

Date: Thu, 21 Aug 2025 10:19:40 +0200
Message-ID: <7A68FA1B809E33489186CBCB715005A53B37F45E@xxxxxxxxxxx>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Has-Attach:
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator: <7A68FA1B809E33489186CBCB715005A53B37F45E@xxxxxxxxxxxxxxxxxxx>
MIME-Version: 1.0
X-MS-Exchange-Organization-AuthSource: xxxxxxxxxxxxxxxxxxxx
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 04
X-Originating-IP: [xxxxxxxxxxxxxxxxx]
X-EndpointSecurity-0xde81-EV: v:7.9.25.561, d:int, a:y, w:t, t:15, sv:1755744933,
ts:1755764380
SL-Gundam
Posts: 754
Joined: 06 Jul 2011, 14:17

Re: No priotity-mapping from email header, every ticket has default value (30)

Post by SL-Gundam »

I'm having the same issue.
Will debug it and get back to you.
SL-Gundam
Posts: 754
Joined: 06 Jul 2011, 14:17

Re: No priotity-mapping from email header, every ticket has default value (30)

Post by SL-Gundam »

A change from 2022 caused this issue.
Should be fixed now.
https://github.com/mantisbt-plugins/Ema ... 55b0a45660

Sidenote. EmailReporting only checks the priority field, not the importance field.
SL-Gundam
Posts: 754
Joined: 06 Jul 2011, 14:17

Re: No priotity-mapping from email header, every ticket has default value (30)

Post by SL-Gundam »

I suggest keeping all the indexes intact for "Classify bug priorities". This is because different email programs will use different values for priority.
Last edited by SL-Gundam on 25 Aug 2025, 16:26, edited 1 time in total.
mworks
Posts: 5
Joined: 01 Apr 2014, 13:04

Re: No priotity-mapping from email header, every ticket has default value (30)

Post by mworks »

Prio will be mapped now, Thank you!
SL-Gundam
Posts: 754
Joined: 06 Jul 2011, 14:17

Re: No priotity-mapping from email header, every ticket has default value (30)

Post by SL-Gundam »

Good to hear.
Thanks for reporting this issue.
Post Reply