Q: how do I prevent mu4e
from automatically checking mail
when the internet's down?
Problem
I use mu4e
and offlineimap
to handle my email. When on a
laptop, I have to deal with the fact that I sometimes have spotty
wifi connections. offlineimap
freaks out when it gets called
without an internet connection.
Problem as it relates to mu4e
I have mu4e
invoke offlineimap
automatically every 5 minutes
or so:
(setq mu4e-get-mail-command "offlineimap -o"
mu4e-update-interval 300)
Unfortunately, that means it doesn't check if I've actually got an internet connection.
So...
How do I tell mu4e
not to invoke offlineimap
if there's no
internet connection?