On Fri, Dec 19, 2008 at 05:12:47PM +0100, Nathan Huesken wrote:
> Is there a hook for startup/shutdown? I do I execute an extern program?
I would think the easiest thing to do is write a small wrapper for
mutt something like
#!/bin/bash
offlineimap
mutt
offlineimap

But if you leave mutt open for any length of time you wont get new
mail notifications. Maybe better off with something like

Be sure you have autorefresh set

#!/bin/bash
offlineimap -u NONINTERACTIVE.QUIET &
mutt
killall offlineimap
offlineimap -o -u NONINTERACTIVE.QUIET

That would have offline imap running while you use mutt then kill it
and force a final sync when you exit mutt.

-- 
Nick Anderson <nick.ander...@pilgrimpage.com>
Network & Systems Administrator
PilgrimPage Inc. | Absorbent Ink
http://www.pilgrimpage.com | http://www.absorbentprinting.com
Office: (785) 842.9164
Desk: (785) 830.6812

Reply via email to