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

Re: Running offlineimap on startup and shutdown



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday, December 19 at 05:12 PM, quoth Nathan Huesken:
> I use offlineimap to syncronize my mail. 

Okay.

> I would like it to run when:
> - mutt starts up 
> - mutt shuts down (so that changes are visible on the server) 

That's probably easiest to do with your shell. If you use bash, you 
could do something like this:

     function mutt {
         offlineimap;
         mutt "$@";
         offlineimap;
     }

> - I press a certain key, to refresh my mailboxes

That, obviously, you'd do in mutt. Something like this:

     macro index,pager B '<shell-escape>offlineimap<enter>'

~Kyle
- -- 
Those who agree with us may not be right, but we admire their 
astuteness.
                                                    -- Cullen Hightower
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAklLz4IACgkQBkIOoMqOI17ncACgpu/FpKqYPejkCiyh4Ze4BcBZ
TbAAoI7TqYpPCdgmpqdYn1Yz6B3EYgdN
=np3F
-----END PGP SIGNATURE-----