[Dovecot] Trigger getmail via mail-client action?

Timo Sirainen tss at iki.fi
Thu Mar 3 19:24:44 EET 2005


On Mon, 2005-02-28 at 09:58 +1100, Curtis Maloney wrote:
> Gert Brinkmann wrote:
> >>> it to be run. The ideal solution for me was to invoke getmail when 
> >>> the "Get Mail"-Button of the mail client is pressed. Is this 
> >>> possible? Perhaps there is something like a connection- or 
> >>> refresh-trigger in dovecot?
> 
> So, really, whenever a user logs into the IMAP server, you want to set a flag 
> somewhere saying getmail should run.
> 
>  From memory there is a config option that will run a script at login.  You 
> could use this to 'touch' a file somewhere.  Then, put a script in cron which 
> checks for this file (and perhaps its staleness), and upon finding it, runs 
> getmail.

It's not very useful only at login unless your IMAP client keeps
reconnecting constantly. I've had Evolution keep the same IMAP session
open for weeks.

> Worst case, you'll have to write your own plugin to get this functionality... 

Yep. That'd work. I'd hook SELECT, EXAMINE, STATUS and CHECK commands to
execute getmail. Maybe NOOP too.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20050303/d40d72e6/attachment.pgp


More information about the dovecot mailing list