6.0.0-beta1
7/3/25

[#14750] invalid sieve script is generated when spam filter is enabled
Summary invalid sieve script is generated when spam filter is enabled
Queue Ingo
Queue Version 3.2.16
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester jiri.slezka (at) slu (dot) cz
Created 12/08/2017 (2764 days ago)
Due
Updated 01/22/2018 (2719 days ago)
Assigned 01/22/2018 (2719 days ago)
Resolved 01/22/2018 (2719 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/22/2018 05:32:01 PM Jan Schneider State ⇒ Not A Bug
 
01/22/2018 04:58:07 PM jiri (dot) slezka (at) slu (dot) cz Comment #3 Reply to this comment
Sounds like 1) you don't have Ingo correctly configured (the spam 
settings in the application configuration), and 2) we don't catch 
this properly. Did you get errors in the Horde log file?
Thanks for pointing to Ingo misconfiguration.

we have there this configuration

$conf['storage']['params']['driverconfig'] = 'horde';
$conf['storage']['driver'] = 'sql';
$conf['rules']['userheader'] = false;
$conf['spam']['compare'] = 'string';

which unfortunately made horde to display numeric spam level in Ingo...

Correctly generated config is

$conf['storage']['params']['driverconfig'] = 'horde';
$conf['storage']['driver'] = 'sql';
$conf['rules']['userheader'] = false;
$conf['spam']['header'] = 'X-Spam-Level';
$conf['spam']['compare'] = 'numeric';

which works ok.

Sorry, for this confusion...
01/22/2018 04:43:29 PM Jan Schneider Comment #2
Priority ⇒ 2. Medium
State ⇒ Feedback
Reply to this comment
Sounds like 1) you don't have Ingo correctly configured (the spam 
settings in the application configuration), and 2) we don't catch this 
properly. Did you get errors in the Horde log file?
12/08/2017 12:16:09 PM jiri (dot) slezka (at) slu (dot) cz Comment #1
Priority ⇒ 3. High
New Attachment: ingo_spam_filter.png Download
Patch ⇒ No
Milestone ⇒
Summary ⇒ invalid sieve script is generated when spam filter is enabled
Type ⇒ Bug
State ⇒ Unconfirmed
Queue ⇒ Ingo
Reply to this comment
Hello,

when I try to enable Spam filter in Ingo, I get this error

Script not updated: There was an error activating the script. The 
driver said: ingo: line 5: error: unknown test 'No' (only reported 
once at first occurrence). ingo: error: validation failed.

sieve script is generated in this way

      1: # Sieve Filter
      2: # Generated by Ingo (http://www.horde.org/apps/ingo/
(12/08/2017, 12:53)
      3: require ["fileinto", "vacation", "regex"];
      4: # Spam Filter
      5: if No strings specified {
      6:     fileinto "Junk";
      7:     stop;
      8: }

problem seems to be the string "No strings specified".

I Ingo spamfilter I have selected this values:
- Spam Level: 10
- Folder to receive spam: Spam

We are using versions
- Horde Groupware Webmail Edition 5.2.22
- Horde (horde) 5.2.17
- Filters (ingo) 3.2.16

Saved Queries