Re: [Dovecot] Any possibility of running query after sucessful login?

2012-02-16 Thread Jan-Frode Myklebust
On Thu, Feb 16, 2012 at 12:18:15PM +0100, Jacek Osiecki wrote: > > By the way, is such thing possible for other processess? For > example, I'd like to set in mysql table information that mail has > been delivered using lmtp. Would something like this work? > > protocol lmtp { > mail_plugins = $

Re: [Dovecot] Any possibility of running query after sucessful login?

2012-02-16 Thread Jacek Osiecki
On Thu, 16 Feb 2012, Jan-Frode Myklebust wrote: On Thu, Feb 16, 2012 at 09:41:52AM +0100, Jacek Osiecki wrote: I was just wondering if there is any possibility of running another query after successful login - just to fill some extra field like "last_login"? We touch a file in /var/log/activem

Re: [Dovecot] Any possibility of running query after sucessful login?

2012-02-16 Thread Jacek Osiecki
On Thu, 16 Feb 2012, Jan-Frode Myklebust wrote: On Thu, Feb 16, 2012 at 09:41:52AM +0100, Jacek Osiecki wrote: I was just wondering if there is any possibility of running another query after successful login - just to fill some extra field like "last_login"? We touch a file in /var/log/activem

Re: [Dovecot] Any possibility of running query after sucessful login?

2012-02-16 Thread Jan-Frode Myklebust
On Thu, Feb 16, 2012 at 09:41:52AM +0100, Jacek Osiecki wrote: > > I was just wondering if there is any possibility of running another > query after successful login - just to fill some extra field like > "last_login"? We touch a file in /var/log/activemailaccounts/$username on every successful

[Dovecot] Any possibility of running query after sucessful login?

2012-02-16 Thread Jacek Osiecki
Hi, I'm using finally dovecot 2.0 after quite a smooth upgrade from 1.0 :) with virtual mailboxes stored in sql database. Sometimes I need to check if a mailbox has been used recently or not. Checking for logins in dovecot logs sometimes means searching through gigabytes of info... I was just