Skip to content

Commit

Permalink
Merge pull request #1066 from josaphatim/fix-adding-sieve-host-when-s…
Browse files Browse the repository at this point in the history
…ieve-disabled

Fix setting sieve host when sieve disabled
  • Loading branch information
kroky authored Jun 5, 2024
2 parents a5832e8 + eed719f commit 367b4e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/imap/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1444,15 +1444,15 @@ function connect_to_imap_server($address, $name, $port, $user, $pass, $tls, $ima
$imap_list['tls'] = false;
}

if (isset($imap_sieve_host) && $imap_sieve_host) {
if ($enableSieve && $imap_sieve_host) {
$imap_list['sieve_config_host'] = $imap_sieve_host;
}

$imap_server_id = Hm_IMAP_List::add($imap_list);
$server = Hm_IMAP_List::get($imap_server_id, false);

if ($enableSieve &&
isset($imap_sieve_host) &&
$imap_sieve_host &&
$context->module_is_supported('sievefilters') &&
$context->user_config->get('enable_sieve_filter_setting', true)) {
try {
Expand Down

0 comments on commit 367b4e6

Please sign in to comment.