WebExtension: Changing port number in client #482
-
Sieve is running on our Suse Linux mailserver for many years. The problem is probably the configured port number. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You can unzip the extension in the Thunderbird directory, change the port (SieveAbstractSession.js) and re-zip it. In theory this should work. |
Beta Was this translation helpful? Give feedback.
-
WebExtension in contrast to classic addons are limited by design. They do not provide any kind of preference system. There are workaround but all are hacky and it easily happens that you loose the settings upon an extension update. For this reason (and also some others) the port is hard coded in WebExtension to the default one specified in the RFC. If you need to configure a custom port, just use the standalone application. It has full feature parity with the legacy add-on and allows you to freely configure the settings. |
Beta Was this translation helpful? Give feedback.
-
Thank you Thomas for your reply! Meanwhile I found a solution how I can work with the add-on. Sieve - Add-On V0.5.3 (filter manager) for Thunderbird 78.8.0 Adaptation of the add-on to our Sieve server (part of the mail server) Bernd Schrödter - February 25, 2021 Problem: Solution: The program code is compressed in the file "[email protected]". File. \ libs \ libManageSieve \ SieveAbstractSession.js: Comment out the line with the 4190 and insert a line with 2000. const { const FIRST_ELEMENT = 0;
File. \ Libs \ managesieve.ui \ settings \ logic \ SieveAbstractHost.js: Replace “PORT_SIEVE_RFC = 4190” with “PORT_SIEVE_RFC = 2000”. (function (exports) { "use strict"; const PORT_SIEVE_RFC = 2000; const TYPE_RFC = 0; File. \ Libs \ managesieve.ui \ settings \ logic \ SieveSecurity.js: Replace "return await true" with "return await false". / **
} File. \ Libs \ managesieve.ui \ settings \ logic \ SieveSecuritySettings.js: Replace “getBoolean (PREF_TLS, true)” by “getBoolean (PREF_TLS, false);”.
|
Beta Was this translation helpful? Give feedback.
WebExtension in contrast to classic addons are limited by design. They do not provide any kind of preference system. There are workaround but all are hacky and it easily happens that you loose the settings upon an extension update.
For this reason (and also some others) the port is hard coded in WebExtension to the default one specified in the RFC.
As mentioned in the post above the xpi file of WebExtension is just a zip which can be unpacked, edited and repacked. But upon a new release the xpi will be automatically replaced.
If you need to configure a custom port, just use the standalone application. It has full feature parity with the legacy add-on and allows you to freely configure the…