<<< Date Index >>>     <<< Thread Index >>>

Running offlineimap on startup and shutdown



Hi,

I use offlineimap to syncronize my mail.
I would like it to run when:
- mutt starts up
- mutt shuts down (so that changes are visible on the server)
- I press a certain key, to refresh my mailboxes

How can this be one?
Is there a hook for startup/shutdown? I do I execute an extern program?

Thanks!
Nathan