[Dovecot] Dovecot waking every 50ms when doing nothing

2007-06-03 Thread Ross Burton
Hi, My laptop runs a local IMAP server so that I'm immune from breaking my mail client, and when playing around with powertop I discovered that Dovecot (in particular imap-login) wakes up every 1000ms and then every 50ms even when no clients are connected. A bit of stracing shows this:

Re: [Dovecot] Dovecot waking every 50ms when doing nothing

2007-06-03 Thread Timo Sirainen
On Sun, 2007-06-03 at 14:06 +0100, Ross Burton wrote: Hi, My laptop runs a local IMAP server so that I'm immune from breaking my mail client, and when playing around with powertop I discovered that Dovecot (in particular imap-login) wakes up every 1000ms and then every 50ms even when no

Re: [Dovecot] Dovecot waking every 50ms when doing nothing

2007-06-03 Thread Timo Sirainen
On Sun, 2007-06-03 at 18:05 +0300, Timo Sirainen wrote: My laptop runs a local IMAP server so that I'm immune from breaking my mail client, and when playing around with powertop I discovered that Dovecot (in particular imap-login) wakes up every 1000ms and then every 50ms even when no

Re: [Dovecot] Dovecot waking every 50ms when doing nothing

2007-06-03 Thread Timo Sirainen
On Sun, 2007-06-03 at 18:13 +0300, Timo Sirainen wrote: Maybe the optimal solution would be to create a new abstraction layer. Most of the timeout handlers are just checking for idle timeouts. struct idle_timeout *idle_timeout_new(unsigned int secs, timeout_callback_t *callback, void

Re: [Dovecot] Dovecot waking every 50ms when doing nothing

2007-06-03 Thread Timo Sirainen
On Sun, 2007-06-03 at 18:27 +0300, Timo Sirainen wrote: ..Or maybe just fix the basic timeout_*() API. Add a new timeout_reset() call == timeout_remove() + timeout_add(original values) and then make the implementation be fast with hundreds of timeouts. The timeouts are currently kept in linked

Re: [Dovecot] Dovecot waking every 50ms when doing nothing

2007-06-03 Thread Richard Laager
On Sun, 2007-06-03 at 18:48 +0300, Timo Sirainen wrote: I've used GLib before. The biggest problem I see with it is that it doesn't support memory pools. That's why I duplicated most of its useful functionality originally instead of just using it directly. So I think it's much better to fix

Re: [Dovecot] Dovecot waking every 50ms when doing nothing

2007-06-03 Thread Dave McGuire
On Jun 3, 2007, at 11:29 AM, Ross Burton wrote: I presume porting Dovecot to use the glib main loop abstraction (which is nice and lean, the object system is a separate library) is out of the question? Please don't. One reason Dovecot is so easy to get up and running quickly is that it

Re: [Dovecot] Dovecot waking every 50ms when doing nothing

2007-06-03 Thread Ross Burton
On Sun, 2007-06-03 at 11:54 -0500, Richard Laager wrote: On Sun, 2007-06-03 at 18:48 +0300, Timo Sirainen wrote: I've used GLib before. The biggest problem I see with it is that it doesn't support memory pools. That's why I duplicated most of its useful functionality originally instead of

[Dovecot] Dovecot Authentication Problem - Help pls!

2007-06-03 Thread Odhiambo WASHINGTON
Hello List, This is dovecot 1.0.0 on FreeBSD 4.11-STABLE. I did not provide this information before:-) I am back again and I think I am edging closer to getting a solution. I have done some modifications and now dovecot gives me a different error message than before Here is what I have

Re: [Dovecot] Dovecot waking every 50ms when doing nothing

2007-06-03 Thread Richard Laager
On Sun, 2007-06-03 at 13:48 -0400, Dave McGuire wrote: That's not to say that simply adding one dependency on glib would cause a huge problem...but it indicates the adoption of a mindset, and it's a slippery slope. The same applies to duplicating code in the interest of avoiding

Re: [Dovecot] Dovecot waking every 50ms when doing nothing

2007-06-03 Thread Timo Sirainen
On Sun, 2007-06-03 at 11:54 -0500, Richard Laager wrote: On Sun, 2007-06-03 at 18:48 +0300, Timo Sirainen wrote: I've used GLib before. The biggest problem I see with it is that it doesn't support memory pools. That's why I duplicated most of its useful functionality originally instead of

Re: [Dovecot] Is there a connect acl ?

2007-06-03 Thread Timo Sirainen
On Sat, 2007-06-02 at 10:47 -0400, Oliver Schulze L. wrote: Hi, I have been reading the acl documentation and it seems that a connect acl is not available. I need to limit the users that can login in an IP number, is that posible with dovecot 1.0? (i.e. only these users can login from the

Re: [Dovecot] Dovecot Authentication Problem - Help pls!

2007-06-03 Thread Timo Sirainen
On Sun, 2007-06-03 at 21:20 +0300, Odhiambo WASHINGTON wrote: Here is a backtrace of the dovecot-auth crash: Two problems with it: #0 0x805dc00 in userdb_blocking_lookup () Debugging symbols were stripped. Could you try building it without removing them, at least from dovecot-auth binary? I

Re: [Dovecot] Sharing nested folders / maildir variations?

2007-06-03 Thread Timo Sirainen
On Thu, 2007-05-31 at 22:43 -0700, SeattleServer.com wrote: We'd have: .Folder/{cur,new,tmp} .Folder/.SubFolder1/{cur,new,tmp} .Folder/.SubFolder1/{cur,new,tmp} .Folder/.SubFolder1/.foo/{cur,new,tmp} .Folder/.SubFolder1/.bar/{cur,new,tmp} .Folder/.SubFolder2/{cur,new,tmp} That would

Re: [Dovecot] TLS errors when vodafone connecting to dovecot server.

2007-06-03 Thread Timo Sirainen
On Thu, 2007-05-31 at 16:58 +0100, Andrew Pounce wrote: Hi, I've been trying to setup the vodafone email sync ( provided by visto apparently ) and have not been able to do so - I'm getting an error message in my mail logs which looks as if there is a problem with certificates somewhere.

Re: [Dovecot] Possible Caching Bug showing up as a MIME Boundary Issue

2007-06-03 Thread Timo Sirainen
On Thu, 2007-05-31 at 11:48 -0400, Kevin A. McGrail wrote: I'm using Dovecot version 1.0.0. I was using Dovecot version 1.0.0 beta3 or alpha4. I upgraded to Dovecot 1.0.0 to make sure that was not the issue. And after upgrade and deleting .imap/ directory this has still happened to new

Re: [Dovecot] Namespace Problems

2007-06-03 Thread Timo Sirainen
On Wed, 2007-05-30 at 10:54 +0200, Rainer Sigl wrote: Many thanks, its working fine with your suggestion. But only with outlook I still have problems. Today morning I found out that outlook does work only I keep the separator line empty with namespace private { # separator = .

Re: [Dovecot] dovecot-sieve-1.0 (hg) does not build

2007-06-03 Thread Timo Sirainen
On Tue, 2007-05-29 at 13:23 +0200, Bernhard Schmidt wrote: Hi, the dovecot-sieve plugin from the hg repository (http://hg.dovecot.org/dovecot-sieve-1.0/) does not build against current dovecot-1.0 repository. .. /.libs/libsieve.a(script.o): In function `sieve_script_parse':

Re: [Dovecot] Overriding IMAP commands

2007-06-03 Thread Timo Sirainen
On Tue, 2007-05-29 at 11:56 +0800, Tony Tsang wrote: Hi all, I am writing a plugin to override some built-in imap commands. But when client logs out, imap segfaults during unregistering commands. What is the correct procedure for overriding imap commands in dovecot? I don't think anyone has

Re: [Dovecot] Client certificate verification/authentication

2007-06-03 Thread Timo Sirainen
On Tue, 2007-05-29 at 12:06 +0200, eizert wrote: Not in Dovecot... In my log, i've simply : dovecot: auth(default): Client didn't present valid SSL certificate Set verbose_ssl=yes and it should log more. It should then log either Invalid certificate or Valid certificate. If it logged neither,

Re: [Dovecot] UW-IMAP style mbox snarfing from /var/mail/ to ~/mbox

2007-06-03 Thread Timo Sirainen
On Tue, 2007-05-29 at 16:20 +0200, Bernd Kuhls wrote: Timo Sirainen wrote: http://dovecot.org/patches/mbox-snarf-plugin.c Hi, I just tried to setup this plugin on a Debian Etch machine but it crashes the Dovecot daemons. Debian Etch uses the sourcecode of Dovecot 1.0rc15 + some

Re: [Dovecot] IMAP traffic logging

2007-06-03 Thread Timo Sirainen
On Mon, 2007-06-04 at 03:35 +0300, Timo Sirainen wrote: On Wed, 2007-05-30 at 15:59 +0200, Chris Laif wrote: Hi. I wonder if it is possible to log the number of bytes send in response to IMAP commands. Unfortunately there seems to be no config option similar to pop3_logout_format.

Re: [Dovecot] Dovecot and Seamonkey/Mozilla delete attachment

2007-06-03 Thread Timo Sirainen
On Wed, 2007-05-23 at 22:19 -0700, Bryce Nesbitt wrote: I'm having persistent trouble deleting larger attachments from messages in Mozilla/Seamonkey mail, and I'm thinking it may be related to Dovecot. A bug report is over at https://bugzilla.mozilla.org/show_bug.cgi?id=381759 126 append

Re: [Dovecot] Simple questions about Quota

2007-06-03 Thread Timo Sirainen
On Thu, 2007-05-24 at 09:31 -0300, Venilton Junior wrote: Here follows my configuration: dovecot -n is preferrable to copypasteing dovecot.conf. user_attrs = mail,homeDirectoryquota=quota=maildir:storage This is a mix of old and new style user_attrs format. That might be causing the

Re: [Dovecot] AIX mail quota plugin problems

2007-06-03 Thread Timo Sirainen
On Wed, 2007-05-30 at 12:46 -0400, Stewart Dean wrote: 4272 [EMAIL PROTECTED]:/usr/local/lib/dovecot/imap ## dovecot ILoading modules from directory: /usr/local/lib/dovecot/imap IModule loaded: /usr/local/lib/dovecot/imap/lib10_quota_plugin.so FPlugin imap_quota not found from directory

Re: [Dovecot] testink

2007-06-03 Thread Timo Sirainen
On Thu, 2007-05-31 at 10:31 +0200, Steffen Kaiser wrote: I suggest, that you shouldn't try to do that. - Message contains In-Reply-To: header - Subject doesn't contain Re: .. - Body doesn't contain any quotes .. - User's first message to list Hmm, I find this test a bit strange. One

Re: [Dovecot] frequent index rebuilds versus disabled indexes

2007-06-03 Thread Timo Sirainen
On Wed, 2007-05-30 at 09:38 -0400, Justin McAleer wrote: Ok, here's the short and sweet version of my dilemma. I have a group of servers mounting a shared NFS device to hold mail data for many different domains. Is it worth the load balancing management nightmare of setting up dedicating

Re: [Dovecot] Public Namespace and ACLs with pure virtual users

2007-06-03 Thread Timo Sirainen
On Sun, 2007-06-03 at 22:26 -0400, Adam McDougall wrote: On Mon, Jun 04, 2007 at 04:28:56AM +0300, Timo Sirainen wrote: ACL plugin shouldn't have anything to do with that decision. The \Seen flag is stored privately if you have created dovecot-shared file to the maildir. Is it

Re: [Dovecot] dovecot-shared tries to fchown index+control files but fails

2007-06-03 Thread Timo Sirainen
On Thu, 2007-05-24 at 18:59 -0400, Adam McDougall wrote: May 24 18:45:35 hostname dovecot: IMAP(username): fchown(/home/username/Maildir/dovecot/public/control/org/.mailfolder/dovecot-uidlist) failed: Operation not permitted I'm not sure if you already figured this out, but these calls are

Re: [Dovecot] dovecot-shared tries to fchown index+control files but fails

2007-06-03 Thread Adam McDougall
On Mon, Jun 04, 2007 at 05:57:49AM +0300, Timo Sirainen wrote: On Thu, 2007-05-24 at 18:59 -0400, Adam McDougall wrote: May 24 18:45:35 hostname dovecot: IMAP(username): fchown(/home/username/Maildir/dovecot/public/control/org/.mailfolder/dovecot-uidlist) failed: Operation not