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.