Priority Switcher for Thunderbird 78 is now available!
Priority Switcher 2.0.1
It is written in MailExtensions and works only with Thunderbird 78. For Thunderbird 68 usres, v0.8.1 is still valid.
Due to the limitations of MailExtensions, there are some differences with v0.8.1.
Displaying and Changing Priority
v0.8.1 shows priority in the thread pane and change it by clicking the icon. However, MailExtensions does not have API to do that so far. So, v2.0.1 display priority of a selected message by toolbar button icon as the following.
If you click the button, a popup will be shown and you can change priority of selected messages by clicking radio box. The "Reset" will restore original priority. "Rewrite Source" and "Delete with Priority Check" are explained later.
Similar items are in the context menu of the thread pane. You can do the same things from the menus.
Rewriting Message Source
By default, changing of priority is applied only to Thunderbird index file (.msf). It means a message itself is not changed. It has the following drawbacks.
Priority will be back to original one when you rebuild file
On IMAP server, other mail clients show original priority
In order to avoid that Priority Switcher has a rewriting functionality. If you change priority for a message and execute the "Rewrite Source" of the popup or context menu, a new message with new X-Priority value is created and old one is removed. Please note it takes some time since it includes copy, rewrite and delete operations of messages.
The rewriting can perform automatically when you switch priority. It is disabled by default. See the "Rewriting of Messages" section of Priority Switcher option. You can choose one from the following:
I recommend you to select the first one considering imact on performance. If you want to share new priority among mail cliants via IMAP server, select third one.
Priority Headers
This new functionality of v2.x series. Thunderbird only reads X-Priority header. Priority Switcher can interpret Importance, Priority and X-MSMail-Priority headers. Please note it is only for toolbar icon display of Priority Switcher. Thunderbird still only considers X-Priority. For example, the priority column of the thread pane is based on only X-Priority.
It is disabled by default. Please check "Interpret Importance, Priority and X-MSMail-Priority headers too" option.
Each header value is shown as following.
Icon display | X-Priority | Importance | Priority | X-MSMail-Priority |
Highest | 1 | High | Urgent | High |
High | 2 | - | - | - |
Normal | 3 | Normal | Normal | Normal |
Low | 4 | - | - | - |
Lowest | 5 | Low | Non-urgent | Low |
Delete with Priority Check
Priority Switcher can alert when you delete messages with higher priority or starred. v0.8.1 overwrites Thunderbird's delete function. In v2.x, the Thunderbird ones remain as it is and the delete with check is implemented as Priority Switcher function. It is also due to the limitaion of MailExtensions.
When you delete messages with high priority by "Delete with Priority Check" of popup or context menu, the following alert will be shown.
If it is OK to delete, click the "Delete" button. If not, click "Cancel" or "X" button. If you delete with the "Exclude high priority messages" checked, the high priority messages will not removed.
The alert is modeless window. So, you can change message selection while it is shown. However, even though you changed the selection, deletion will perform to messages selected before the alert. Please note.
By default, it shows alert when you delete starred or High or Highest priority messages. You can configure the condition in the option.
It can invoke from keyboard shortcut but disabled by default. You need to assign keys before you use it.
Moreover, if you invoke it context menu or toolbar button (with Trash icon. Will mention later.) with Shift key pressed, messages will not be moved to Trash and deleted completely.
Configuring Toolbar Button Commands
MailExtensions allow only one toolbar button per one add-on. So, two functionalities are implemented in the button. You can configure the button as you like. In option, the follwing two items are available:
Icon and behavior of the button becomes as follows according to combination of the options.
Change priority | Delete messages with priority check | Icon | Popup |
X | X | Priority display | Shown. "Delete with Priority Check" is available too. |
X | - | Priority display | Shown but "Delete with Priority Check" is not available. |
- | X | Trash icon | Not shown. When you click the button, "Delete with Priority Check" will be invoked without popup. |
- | - | Priority display | Not shown. Nothing is performed if you click the button. |
The third one (Trash icon) is implmented as a workaround for users who have complaint against the delete functionality. The icon cannot change priority but it can be used as substitute of original one.
Brief explanation is all. If you find some bugs or enhancements, please feel free to comment here. I hope you like the new Priority Switcher too.