i tried to create a rule with sxaa that files spam in Skräpost, but was unable to. I can create the same rule with Outlook, but was trying todo the same with sxaa so i could easy do it for all users. Here is how it goes:
Code: Select all
[root@sx02 spool]# sxaa --user "Niklas Larsson"
OOF FLT OLK AANO ACTION TITLE STATE
--- --- --- ---- ---------- ------------------------------ --------
Y 1001 REDIRECT nagios enabled
Y Y 1002 FILE Scalix Rule: Swewox enabled
Y Y 1003 FILE Scalix Rule: Spam enabled
[root@sx02 spool]# sxaa --user "Niklas Larsson" --info 1003
Conditions
----------
Subject = "%Spam%"
Action
------
FILE in Skräppost
[root@sx02 spool]# sxaa --user "Niklas Larsson" --file "Skräppost" --subject "spam"
[root@sx02 spool]# sxaa --user "Niklas Larsson"
OOF FLT OLK AANO ACTION TITLE STATE
--- --- --- ---- ---------- ------------------------------ --------
Y 1001 REDIRECT nagios enabled
Y Y 1002 FILE Scalix Rule: Swewox enabled
Y Y 1003 FILE Scalix Rule: Spam enabled
Y 1004 FILE SXAA FILE:1004 enabled
[root@sx02 spool]# sxaa --user "Niklas Larsson" --info 1004
Conditions
----------
Subject = "%spam%"
Action
------
FILE in Skr?ppost
It seams like there is an issue with åäö... With debug turned on:
Code: Select all
...
Results: ['HEADER (DN) 1 0 2 1002 0x0 0x0 0 0x0 0x0 0x2 0x0 0x0 ""\n', 'AA_NO () 0x0 1001 0 0 0 0 "nagios" "" "ISO8859_1" "" "" "nagios"\n', 'FILTER_NAME () 0x0 0x8000 3 1 0 0 "S=%nagios@moment.se%"\n', 'AA_REDIRECT () 0x0 0x0 0 0 "S=niklas/OU1=internet/DDT1=RFC-822/DDV1=niklas@tes.se/CN=niklas/INTERNET-ADDR=niklas@tese.se"\n', 'AA_NO (DN) 0x4 1002 0 0 0 0 "Scalix Rule: Swewox" "" "ISO8859_1" "" "" "Scalix Rule: Swewox"\n', 'FILTER_NAME (DN) 0x0 0x8000 3 1 0 0 "S=%SWEWOX@PLUSFORYO.SE%"\n', 'AA_FILE (DN) 0x0 0x1 0 0 "Swewox" "" "ISO8859_1" "" "" "Swewox"\n', 'AA_NO (DN) 0x4 1003 0 0 0 0 "Scalix Rule: Spam" "" "ISO8859_1" "" "" "Scalix Rule: Spam"\n', 'FILTER_STRING (DN) 0x0 0x0 2 1 0 0 "%Spam%" "" "UTF8" "" ""\n', 'AA_FILE (DN) 0x0 0x1 0 0 "Skr\xe4ppost" "" "ISO8859_1" "" "" "=?UTF-8?Q?Skr=C3=A4ppost?="\n', 'AA_NO () 0x0 1004 0 0 0 0 "SXAA FILE:1004" "" "ISO8859_1" "" "" "SXAA FILE:1004"\n', 'FILTER_STRING () 0x0 0x0 2 1 0 0 "%spam%" "" "" "" ""\n', 'AA_FILE () 0x0 0x1 0 0 "Skr?ppost" "" "ISO8859_1" "" "" "Skr\xe4ppost"\n']
Errors : []
Conditions
----------
Subject = "%spam%"
Action
------
FILE in Skr?ppost
The rule created in Outlook seams to have been decoded in utf8 - how can this be done with sxaa?
/ niklas
