cypht
cypht copied to clipboard
Can't view/edit/enable sieve filters
🐛 Bugreport
I enabled sieve in my imap server and also in Cypht with the modules[]=sievefilters config line. I've regenerated my config with config_gen.php but if I log into Cypht and go to the filters page, it's blank as shown below:
![cypht_filters_page](https://user-images.githubusercontent.com/739928/218909653-83234f4f-1ef2-4255-bdd5-7f602dd148c3.png)
I've checked the imap servers settings page and there is no option to enable sieve filters:
![cypht_imap_page](https://user-images.githubusercontent.com/739928/218909863-d1cc2e44-feaa-4dca-9e34-36a81a31db64.png)
In the cypht log there is the following when I access the imap server settings page:
mailserver-cypht-1 | NOTICE: PHP message: Array mailserver-cypht-1 | ( mailserver-cypht-1 | [0] => Using Hm_PHP_Session with Hm_Auth_IMAP mailserver-cypht-1 | [1] => Using file based user configuration mailserver-cypht-1 | [2] => Using sapi: fpm-fcgi mailserver-cypht-1 | [3] => Request type: HTTP mailserver-cypht-1 | [4] => Request path: / mailserver-cypht-1 | [5] => TLS request: 1 mailserver-cypht-1 | [6] => Mobile request: 0 mailserver-cypht-1 | [7] => Page ID: servers mailserver-cypht-1 | [8] => CACHE backend using: noop mailserver-cypht-1 | [9] => LOGGED IN mailserver-cypht-1 | [10] => Handler module Hm_Handler_sieve_filters_enabled activated but not found mailserver-cypht-1 | [11] => TRANSLATION NOT FOUND :Gandi: mailserver-cypht-1 | [12] => TRANSLATION NOT FOUND :Kolab Now: mailserver-cypht-1 | [13] => TRANSLATION NOT FOUND :Office365: mailserver-cypht-1 | [14] => TRANSLATION NOT FOUND :JMAP Servers: mailserver-cypht-1 | [15] => TRANSLATION NOT FOUND :Add a JMAP Server: mailserver-cypht-1 | [16] => TRANSLATION NOT FOUND :Server URL: mailserver-cypht-1 | [17] => TRANSLATION NOT FOUND :Server URL: mailserver-cypht-1 | [18] => PHP version 8.2.2 mailserver-cypht-1 | [19] => Zend version 4.2.2 mailserver-cypht-1 | [20] => Peak Memory: 8192 mailserver-cypht-1 | [21] => PID: 31 mailserver-cypht-1 | [22] => Included files: 71 mailserver-cypht-1 | )
My imap server (docker-mailserver with Dovecot) has managesieve enabled and port 4190 exposed to the container running Cypht.
Here is the modules section of my hm3.ini file:
; ----------------------------------------------------------------------------- ; Modules ; ----------------------------------------------------------------------------- modules[]=core ; Contacts ; ------- ; Contact support. This module requires that at least one "backend" contacts ; module be enabled (ldap_contacts, gmail_contacts, or local_contacts). You ; can enable all the backends you want to support. modules[]=contacts modules[]=local_contacts modules[]=imap modules[]=sievefilters ; 2 factor authentication ; ----------------------- ; This module enables 2 factor authentication using TOTP (compatible with ; Google Authenticator). You must edit the ini file in modules/2fa/ to ; configure a shared secret, then move that file to your app_data_dir. modules[]=2fa modules[]=smtp modules[]=account modules[]=idle_timer ;modules[]=calendar modules[]=themes modules[]=nux ; Simple list of messages read since login ;modules[]=history ; Save and re-run searches easily ;modules[]=saved_searches ; Enable the advanced search form modules[]=advanced_search modules[]=highlights modules[]=profiles modules[]=inline_message modules[]=imap_folders modules[]=keyboard_shortcuts
Version & Environment
Rev: 07605067 OS: Docker v23.0.0 running on Ubuntu 22.04.1 host, Cypht container running docker image php:8.2.2-fpm-alpine3.17
Steps to reproduce
- Configure modules[]=sievefilters and in hm3 and run scripts/config_gen.php.
- Log into Cypht.
- Go to filters page, it will be blank.
- Also check Servers > Imap Servers page, there is no option to enable sieve filters as shown in screenshot here: https://github.com/jasonmunro/cypht/pull/569.