On Tue, Feb 28, 2006, Oleg Lapshin <[EMAIL PROTECTED]> said:
> When I changed line 673 of timsieve.c from:
> "{%u+}\r\n",
> to
> "{%u}\r\n",
> kmail can get script to change it!!!
They need to read the draft RFC:
http://www.ietf.org/internet-drafts/draft-martin-managesieve-06.txt
2.9. GETSCRIPT Command
Arguments:
String - Script name
This command gets the contents of the specified script. If the
script does not exist the server MUST reply with a NO response. Upon
success a string with the contents of the script is returned
followed by a OK response.
Example:
C: Getscript "myscript"
S: {48+}
S: #this is my wonderful script
S: reject "I reject all";
S:
S: OK
Because a literal is encoded like this:
literal = "{" number "+}" CRLF *OCTET
;; The number represents the number of octets.
;; Sieve scripts MUST be sent as literal-utf8.
;; <<literal-utf8>> is defined in ACAP.
> BUT!
> When I try to upload script, it's failed:
>
> kmail: HAVESPACE "main" 316
> server: NO "Command not implemented."
>
> So, HAVESPACE capability must be implemented.
I'll add this command in a few hours.
Aaron