From 5c89367aeb4709b7dbbe344e34e7f992cbbcdeaa Mon Sep 17 00:00:00 2001 From: master3395 Date: Sat, 11 Apr 2026 21:43:36 +0200 Subject: [PATCH] Restore SnappyMail list-unsubscribe-header plugin step after SnappyMail install Re-run install_and_enable_list_unsubscribe_header_plugin from plogical.snappymail_plugin_utilities after snappymail_cyberpanel.php; keep bundled plugin under install/snappymail/plugins/. --- plogical/upgrade.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 15c43ef51..3c3142be2 100644 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -1632,6 +1632,13 @@ $cfg['Servers'][$i]['port'] = '3306'; command = f'/usr/local/lsws/lsphp83/bin/php /usr/local/CyberCP/snappymail_cyberpanel.php' Upgrade.executioner_silent(command, 'verify certificate', 0) + try: + from plogical.snappymail_plugin_utilities import install_and_enable_list_unsubscribe_header_plugin + if install_and_enable_list_unsubscribe_header_plugin(): + Upgrade.stdOut("SnappyMail list-unsubscribe-header plugin installed and enabled", 0) + except BaseException as plug_msg: + Upgrade.stdOut("Warning: list-unsubscribe SnappyMail plugin: " + str(plug_msg), 0) + # labsPath = '/usr/local/lscp/cyberpanel/rainloop/data/_data_/_default_/configs/application.ini' # labsData = """[labs]