diff --git a/modules/nux/modules.php b/modules/nux/modules.php index 1024905138..f014d4f885 100644 --- a/modules/nux/modules.php +++ b/modules/nux/modules.php @@ -68,11 +68,13 @@ public function process() { $smtp_servers = NULL; $feed_servers = NULL; $profiles = NULL; + $jmap_servers = NULL; $modules = $this->config->get_modules(); if (data_source_available($modules, 'imap')) { - $imap_servers = count(Hm_IMAP_List::dump(false)); + $imap_servers = Hm_IMAP_List::dump(false); + $jmap_servers = count(array_filter(Hm_IMAP_List::dump(false), function($v) { return array_key_exists('type', $v) && $v['type'] == 'jmap'; })); } if (data_source_available($modules, 'feeds')) { $feed_servers = count(Hm_Feed_List::dump(false)); @@ -87,6 +89,7 @@ public function process() { $this->out('nux_server_setup', array( 'imap' => $imap_servers, + 'jmap' => $jmap_servers, 'feeds' => $feed_servers, 'smtp' => $smtp_servers, 'profiles' => $profiles @@ -364,7 +367,7 @@ public function process() continue; } } - } + } if (! empty($server['smtp']['server'])) { if (!$this->module_is_supported('smtp')) { $errors[] = 'SMTP module is not enabled'; @@ -541,7 +544,7 @@ protected function output() { class Hm_Output_nux_help extends Hm_Output_Module { protected function output() { return '

'.$this->trans('Help').'

'. - $this->trans('Cypht is a webmail program. You can use it to access your E-mail accounts from any service that offers IMAP, or SMTP access - which most do.').' '. + $this->trans('Cypht is a webmail program. You can use it to access your E-mail accounts from any service that offers IMAP, or SMTP access - which most do. And Cypht also supports the newest protocol: JMAP (RFC8621).').' '. '
'; } } @@ -563,6 +566,8 @@ protected function output() { $res .= ''.$this->trans('Add an E-mail Account').''; $res .= '