Aaron Stone wrote:
> 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

Yes, I read this.
Nevertheless, both kmail and smartsieve don't like {size+} syntax
They like {size} one... :)


> > 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.

OK

Please, add 2 more lines to db.c:

--- orig/db.c   2006-02-26 21:16:40.000000000 +0300
+++ my/db.c     2006-03-01 02:49:19.000000000 +0300
@@ -636,6 +636,7 @@
                        return DM_EQUERY;
                }
        }
+       db_free_result();

        snprintf(query, DEF_QUERYSIZE,
                "UPDATE %ssievescripts SET name = '%s' "
@@ -689,6 +690,7 @@
                        return DM_EQUERY;
                }
        }
+       db_free_result();

        snprintf(query, DEF_QUERYSIZE,
                "INSERT into %ssievescripts "


And 1 more thing:
when I try to upload _new_ script from kmail,
small script is uploaded fine
but large - don't

dbmysql.c,db_query: executing query [BEGIN]
dbmysql.c,db_query: executing query [SELECT COUNT(*) FROM dbmail_sievescripts 
WHERE owner_idnr = 2 AND name = '@!temp-script!@']
dbmysql.c,db_query: executing query [INSERT into dbmail_sievescripts 
(owner_idnr, name, script, active) values (2, '@!temp-script!@', '

<skip large script>

]
dbmysql.c,db_query: executing query [COMMIT]
sortsieve.c, sort_getscript: Getting default script named [EMAIL PROTECTED]@]
dbmysql.c,db_query: executing query [SELECT script from dbmail_sievescripts 
where owner_idnr = '2' and name = '@!temp-script!@']
Error 12 when calling sieve2_validate: Sieve Error: script was not retrieved

timsieve.c, tims: Error inserting script 2

I don't know, but script don't saved to dbmail_sievescripts table.

-- 
Oleg Lapshin

Reply via email to