Skip to content

Commit

Permalink
Merge pull request #1268 from josaphatim/fix-executing-sieve-filters-…
Browse files Browse the repository at this point in the history
…enable-when-sieve-not-present

Fix executing handler sieve filters enabled message content when server is configured without sieve
  • Loading branch information
Shadow243 authored Oct 8, 2024
2 parents 8837a80 + 4de9aa4 commit 4041e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sievefilters/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Hm_Handler_sieve_filters_enabled_message_content extends Hm_Handler_Module
public function process() {
$server = $this->user_config->get('imap_servers')[$this->request->post['imap_server_id']];
$sieve_filters_enabled = $this->user_config->get('enable_sieve_filter_setting', DEFAULT_ENABLE_SIEVE_FILTER);
if ($sieve_filters_enabled) {
if ($sieve_filters_enabled && !empty($server['sieve_config_host'])) {
$factory = get_sieve_client_factory($this->config);
try {
$client = $factory->init($this->user_config, $server);
Expand Down

0 comments on commit 4041e61

Please sign in to comment.