[Dovecot] Triggering mailbox fetch
Greetings,
I would like to migrate mailboxes into a Dovecot system by using an IMAP transfer from the old system - and I'd like this to take place automatically at the time the user first logs into the new system.
I have a script which will perform an IMAP fetch and dump it into the local maildir.
In courier-imap I could create a '.loginexec' file which is executed when the user logs in, and gets deleted if it completes successfully. I'm trying to find something similar for Dovecot.
fetchmail-wakeup is the right kind of idea, but I need it to stop running once mail has been transferred successfully once. It also needs different parameters for each user (e.g. user/pass used to login to the remote IMAP server)
The convert_mail plugin only works with local mail spools, as far as I can tell. I'm not sure how it determines whether conversion has already taken place (whether the target maildir already exists?)
autocreate only creates empty mailboxes
Any of these might be a starting point for developing my own plugin, but does anyone here know of an existing one which would do the job?
Thanks,
Brian.
On Fri, 2010-03-19 at 16:02 +0000, Brian Candler wrote:
In courier-imap I could create a '.loginexec' file which is executed when the user logs in, and gets deleted if it completes successfully. I'm trying to find something similar for Dovecot.
How about: http://wiki.dovecot.org/PostLoginScripting
On Fri, Mar 19, 2010 at 06:15:20PM +0200, Timo Sirainen wrote:
In courier-imap I could create a '.loginexec' file which is executed when the user logs in, and gets deleted if it completes successfully. I'm trying to find something similar for Dovecot.
How about: http://wiki.dovecot.org/PostLoginScripting
Looks perfect. Thank you!
On Fri, Mar 19, 2010 at 7:21 PM, Brian Candler B.Candler@pobox.com wrote:
In courier-imap I could create a '.loginexec' file which is executed when the user logs in, and gets deleted if it completes successfully. I'm
On Fri, Mar 19, 2010 at 06:15:20PM +0200, Timo Sirainen wrote: trying
to find something similar for Dovecot.
How about: http://wiki.dovecot.org/PostLoginScripting
Looks perfect. Thank you!
@Brian,
Once done, I hope you can share such a tool in the Dovecot Wiki. Seems extremely handy.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223
"If you have nothing good to say about someone, just shut up!." -- Lucky Dube
participants (3)
-
Brian Candler
-
Odhiambo Washington
-
Timo Sirainen