Assertion failed in sql_transaction_commit with pgsql driver

2014-09-03 Thread Potapov Sergey
Hi! Next code from driver_pgsql_transaction_commit cause assertion failed in do_query function - i_assert(SQL_DB_IS_READY(&db->api)) } else { /* multiple queries, use a transaction */ ctx->refcount++; sql_query(_ctx->db, "BEGIN", transaction_begin_callback, ctx);

Maybe error in login-common/login-proxy.c/proxy_client_input

2014-07-23 Thread Potapov Sergey
Hi! It seems that o_stream_cork should be done on proxy->server_output but not on proxy->client_output. o_stream_cork(proxy->client_output); ret2 = o_stream_send(proxy->server_output, buf, ret); o_stream_uncork(proxy->server_output);

Dovecot 2.2.13+ Assertion failed in sync_expunge_range

2014-07-16 Thread Potapov Sergey
Hi! I got this error when build dovecot from source (rev 17627), configure it as imapc proxy (http://wiki2.dovecot.org/HowTo/ImapcProxy) and run imaptest with clients=2 or more, on latest stable version (2.2.13) and with clients=1 this error does not occurred. Jul 16 17:22:26 imap(user771): Pa

Dovecot 2.2.13 Assertion failed in mailbox_list_create

2014-07-16 Thread Potapov Sergey
Hi I got this error when configured imapc proxy (http://wiki2.dovecot.org/HowTo/ImapcProxy) and moved indexes to memory (mail_location = imapc:~/imapc:INDEX=MEMORY), with indexes on disk this error does not occurred. Jul 16 17:06:31 imap-login: Info: Login: user=, method=PLAIN, rip=127.0.0.1,

[Dovecot] Possible error in function mailbox_autocreate

2014-02-18 Thread Potapov Sergey
Hi! in mailbox_autocreate: if (mailbox_create(box, NULL, FALSE) < 0) { errstr = mailbox_get_last_error(box, &error); if (error != MAIL_ERROR_NOTFOUND) { <<< May be MAIL_ERROR_EXISTS should be here? mail_storage_set_critical(box->storage,

[Dovecot] Error in imap_address_arg_append

2013-12-03 Thread Potapov Sergey
Hi Function imap_envelope_parse return incorrect result for addresses with groups due to error in imap_address_arg_append because of with ", " is added after group name and before first mailbox. Patch for dovecot v2.1 in attach. imap-envelope.patch Description: imap-envelope.patch

[Dovecot] Path for fixing sequence lookup of newly created mails in transaction view

2012-12-19 Thread Potapov Sergey
Hi! It seem that tview_lookup_seq_range works incorret, if I request uids from 3 to 3, and I have new uids 1,2,4,5 it will return seq for uid=4. Fixing patch is included as attach. -- Sergey Potapov # HG changeset patch # User lion@ubuntu.ubuntu-domain # Date 1354855835 -14400 # Node ID bb3