sxaa and non-us letters

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

pnlarsson

sxaa and non-us letters

Postby pnlarsson » Fri Dec 28, 2007 3:55 am

Hi,

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

gren
Scalix
Scalix
Posts: 264
Joined: Thu Mar 25, 2004 10:27 am
Contact:

Postby gren » Mon Dec 31, 2007 7:57 am

Which version of Scalix (and which version of sxaa) are you using?
As of 11.2, sxaa was integrated into scalix-server (as /opt/scalix/bin/sxaa) and was updated to add UTF-8 support. See bugs :

https://bugzilla.scalix.com/show_bug.cgi?id=6994
and
https://bugzilla.scalix.com/show_bug.cgi?id=15702 which talks about UTF-8 support.

If you are using Scalix 11.2 or later, make sure you are finding the version of sxaa in /opt/scalix/bin and not the old one from the Admin Resource Kit.

If you are using the 11.2 or later version, make sure your environment settings (LANG) and your terminal settings agree with each other about which character set you are using.

Hope this helps.

Regards,
Gren.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 3 guests

cron