Skip to content

Commit

Permalink
Merge pull request #799 from josaphatim/add-sieve-postale-io
Browse files Browse the repository at this point in the history
Added sieve to postale.io in nux module
  • Loading branch information
kroky authored Oct 23, 2023
2 parents 3d45097 + bd75a21 commit 5ba93a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/nux/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function process() {
'user' => $form['nux_email'],
'pass' => $form['nux_pass'],
);
if (in_array($form['nux_service'], ['gandi']) && $this->module_is_supported('sievefilters') && $this->user_config->get('enable_sieve_filter_setting', true)) {
if ($details['sieve'] && $this->module_is_supported('sievefilters') && $this->user_config->get('enable_sieve_filter_setting', true)) {
$imap_list['sieve_config_host'] = $details['sieve']['host'].':'.$details['sieve']['port'];
}
Hm_IMAP_List::add($imap_list);
Expand Down
4 changes: 4 additions & 0 deletions modules/nux/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@
'port' => 465,
'tls' => true
),
'sieve' => array(
'port' => 4190,
'host' => 'tls://mail.postale.io'
)
));

Nux_Quick_Services::add('mailbox', array(
Expand Down
2 changes: 1 addition & 1 deletion modules/sievefilters/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ function get_mailbox_filters($mailbox, $site_config, $user_config, $html=false)
}
} catch (Exception $e) {
Hm_Msgs::add("ERRSieve: {$e->getMessage()}");
return $html ? []: '';
return !$html ? []: '';
}

if ($html == false) {
Expand Down

0 comments on commit 5ba93a5

Please sign in to comment.