Hibernation disabled when mailbox selected

2015-10-17 Thread Joseph Tam
After setting imap_hibernate_timeout to 60s, I could not find any hibernated connections after a few hours. I tested hibernation and made an observation: IDLE'd imap sessions only hibernate if they don't have a mailbox SELECT'd, otherwise they never hibernate. Is this the way it's supposed to w

Re: More information about - Dovecot 2.2.x quota mysql and dict

2015-10-17 Thread Simon
/192.168.7.184/ -/Client - Mozilla Thunderbird (latest version)/ *192.168.7.185* - *Server Dovecot 2.2.19* # vim dovecot.log === Oct 04 15:17:45 imap-login: Debug: SSL: elliptic curve secp384r1 will be used for ECDH and ECDHE key exchanges Oct 04 15:17:45 imap-login: Debug: SSL: ellip

Re: More information about - Dovecot 2.2.x quota mysql and dict

2015-10-17 Thread Timo Sirainen
On 17 Oct 2015, at 13:29, Simon wrote: > > Thanks for your answer, Timo! :) > > I send to you my configoration for reproducing. .. > If need anymore about configuration, please write me. > Today I can respond quickly. What does Dovecot log when you deliver a new mail (with auth_debug=yes and m

Re: More information about - Dovecot 2.2.x quota mysql and dict

2015-10-17 Thread Simon
Thanks for your answer, Timo! :) I send to you my configoration for reproducing. Please, follow the link, because configuration is a very big, there will be more easy to read and understand My configuration Dovecot 2.2.19 Below the same my configuration Dov

Re: More information about - Dovecot 2.2.x quota mysql and dict

2015-10-17 Thread Timo Sirainen
On 07 Oct 2015, at 01:34, Simon wrote: > > I some add information about bug... > > > Dovecot 2.2.19 version on server FreeBSD 10.2 Release. > Config quota (dict + mysql) > Database create Postfixadmin 2.3.7 > > Old version Dovecot 2.2.13 use method UPDATE in MySQL base + dict > example mysql.l

Re: Order in which UIDs are assigned..

2015-10-17 Thread Akash
If it's less than 64 bits number and Dovecot is compiled as 64bit binary, I guess it should work. Otherwise it gets more or less random: http://hg.dovecot.org/dovecot-2.2/file/17aac21b303d/src/lib-storage/index/maildir/maildir-filename.c#l117 That explains it. Thanks.

Re: Order in which UIDs are assigned..

2015-10-17 Thread Timo Sirainen
> On 17 Oct 2015, at 11:44, Akash wrote: > >> Dovecot doesn't look at the new files' mtimes or ctimes, because that >> would require stat()ing the file, which slows it down. So it's using >> the timestamp in the Maildir filename itself. > > Thanks Timo for the clarification. Whats Dovecot's str

Re: Order in which UIDs are assigned..

2015-10-17 Thread Akash
Dovecot doesn't look at the new files' mtimes or ctimes, because that would require stat()ing the file, which slows it down. So it's using the timestamp in the Maildir filename itself. Thanks Timo for the clarification. Whats Dovecot's strategy when the file-name does not contain a time-stamp a

Re: doveadm-search-query pattern format

2015-10-17 Thread Timo Sirainen
> On 17 Oct 2015, at 03:05, Frank-Ulrich Sommer wrote: > > Hello, > > the doveadm-search-query documentation specifies a 'pattern' for many search > keys. Unfortunately it does not mention the format specification of this > pattern (special characters, wildcards, ...). I'm using dovecot 2.2.

Re: Order in which UIDs are assigned..

2015-10-17 Thread Timo Sirainen
On 17 Oct 2015, at 10:24, Akash wrote: > > Hi, > > I just want some clarification on how Dovecot's IMAP assigns UIDs when it > picks files from the "new" directory of a Maildir. What I am observing is > that only ctime has a role to play in it. For example if there are two files > in "new", a

Re: doveadm index assertion failed

2015-10-17 Thread Timo Sirainen
On 16 Oct 2015, at 23:44, Nick Rosier wrote: > > >> gdb --args doveadm index -u user@domain INBOX >> run >> >> f 5 >> p src >> p ic_srcbuf >> p *src_size >> p srcleft > I recompiled Dovecot with Debug but I suspect I will have to do it for all > the required libraries as well; I did manage to

Order in which UIDs are assigned..

2015-10-17 Thread Akash
Hi, I just want some clarification on how Dovecot's IMAP assigns UIDs when it picks files from the "new" directory of a Maildir. What I am observing is that only ctime has a role to play in it. For example if there are two files in "new", a.msg & z.msg. Even when a.msg has lower mtime than z.