offlineimap_sync.sh: quiet mode
This commit is contained in:
parent
0f90ddc480
commit
20b9578daf
@ -4,10 +4,11 @@
|
|||||||
# shamelessly stolen from
|
# shamelessly stolen from
|
||||||
# https://hobo.house/2015/09/09/take-control-of-your-email-with-mutt-offlineimap-notmuch/
|
# https://hobo.house/2015/09/09/take-control-of-your-email-with-mutt-offlineimap-notmuch/
|
||||||
|
|
||||||
|
source /home/rothe/.profile
|
||||||
imapserver=$(cat ~/.offlineimaprc | grep remotehost | awk '{print $3}')
|
imapserver=$(cat ~/.offlineimaprc | grep remotehost | awk '{print $3}')
|
||||||
imapactive=$(ps -ef | grep '[o]fflineimap' | wc -l)
|
imapactive=$(ps -ef | grep '[o]fflineimap' | wc -l)
|
||||||
netactive=$(ping -c3 $imapserver >/dev/null 2>&1 && echo up || echo down)
|
netactive=$(ping -c3 $imapserver >/dev/null 2>&1 && echo up || echo down)
|
||||||
mailsync="/usr/bin/offlineimap"
|
mailsync="/usr/bin/offlineimap -o -u quiet"
|
||||||
|
|
||||||
# kill offlineimap if active, sometimes it hangs
|
# kill offlineimap if active, sometimes it hangs
|
||||||
case $imapactive in
|
case $imapactive in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user