I need help writing a script to update offlineIMAP on demand.
It will need to interrupt an already running instance of offlineIMAP, run an offlineIMAP sync, and then proceed with the normal sync updates every five minutes. (autorefresh = 5)
A situation is that I have mutt and offlineIMAP running. I can hear my phone receive mail, but I cannot respond via mutt until offlineIMAP runs the sync.
OfflineIMAP - http://offlineimap.org/