[OGo-Users] Problems with multi-line vacation messages
Samuli Seppänen
users@opengroupware.org
Wed, 14 Mar 2007 11:10:25 +0200
I found the real problem when trying to reproduce my original problem in
a consistent way. I'll check the bugzilla to see if this new problem has
been reported, do some more testing and possibly file a bug report.
Meanwhile I'll create a wrapper / replacement for sky_install_sieve to
circumvent this problem.
Anyways, the problem was not CR LF, but by differences between UTF-8 /
ISO-8859-1 encodings.
Here are some snippets of the ogo-webui-1.0-err.log along with comments...
When Firefox is set to use UTF-8 encoding and skandinavian letters are
used sky_install_sieve works:
S[0x80d82cc]: OK
C: PUTSCRIPT "ogo" {156+}
require ["fileinto"];
require ["vacation"];
vacation :days 7 :addresses ["joakim.hirvi@domain.com"] :subject
"Lomavastaus" text:
öäöäö
öäöäö
.
;
-----
The sky_install_sieve fails when Firefox is used with default settings
(ISO-8859-1) and skandinavian letters are used in either the Subject or
Text:
S[0x80d83ac]: OK
C: PUTSCRIPT "ogo" {202+}^M
require ["fileinto"];
require ["vacation"];
vacation :days 7 :addresses ["joakim.hirvi@domain.com"] :subject
"Lomavastaus" text: Useita rivejä skandien kera, kun^M
Firefoxin merkistökoodaus on UTF-8
.
;
^M
S[0x80d83ac]: NO {95}
Mar 14 10:25:30 sky_install_sieve [25879]: <0x08073FE4[InstallSieve]>
ERROR: could not upload script 'ogo': {
RawResponse = {
ok = 0;
reason = "script errors:\nline 8: string 'Useita rivejä skandien
kera, kun\nFirefoxin merkistökoodaus on ";
};
result = 0;
}
Mar 14 10:25:30 ogo-webui-1.0 [28667]:
<<0x088A8354[LSWImapMailFilterManager]>>D sky_install_sieve exit with 0
-------------
When Firefox is forced to UTF-8 mode, sky_install_sieve does it's job:
C: PUTSCRIPT "ogo" {156+}^M
require ["fileinto"];
require ["vacation"];
vacation :days 7 :addresses ["joakim.hirvi@domain.com"] :subject
"Lomavastaus" text:
öäöäö^M
öäöäö
.
;
^M
S[0x80d82cc]: OK
C: SETACTIVE "ogo"^M
S[0x80d82cc]: OK
Mar 14 10:29:17 ogo-webui-1.0 [28667]:
<<0x088A8354[LSWImapMailFilterManager]>>D sky_install_sieve exit with 0
----------
Everything works smoothly if no scandinavian letters are used -
regardless of browser encoding. This is to be expected because even
though scandinavian letters in ISO-88559-1 and UTF-8 have different
codes, standard ASCII letters are the same. Here's an example:
C: PUTSCRIPT "ogo" {222+}^M
require ["fileinto"];
require ["vacation"];
vacation :days 7 :addresses ["joakim.hirvi@domain.com"] :subject
"Two-line test" text:
Line one^M
Line two
.
;
if allof (header :contains ["from"] "test")
{
fileinto "INBOX";
}
^M
S[0x80d80b4]: OK
C: SETACTIVE "ogo"^M
S[0x80d80b4]: OK
Mar 14 10:08:15 ogo-webui-1.0 [28667]:
<<0x088A8354[LSWImapMailFilterManager]>>D sky_install_sieve exit with 0
> I think this ^M is produced by the web browser. CRLF is the usual
> delimiter in Internet protocols. I'm not sure why it would hurt Cyrus,
> one should check how the produced Sieve looks like.
>
> Greets,
> Helge
> --Helge Hess
> http://www.helgehess.eu/
>
>
> --OpenGroupware.org Users
> users@opengroupware.org
> http://mail.opengroupware.org/mailman/listinfo/users
>