summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-12-27 09:50:21 +0100
committerPatrick Simianer <p@simianer.de>2016-12-27 09:50:21 +0100
commitfb83125d5972171feb2718623fe88b83160fbd72 (patch)
treef4aed9116c085bfaa106befc6945c8853890239e
parentf7c8277fd3de5e3aa300f9d20953d77a2b920ea9 (diff)
holiday switch
-rwxr-xr-xofflineimap-switch6
1 files changed, 5 insertions, 1 deletions
diff --git a/offlineimap-switch b/offlineimap-switch
index be2103a..261518d 100755
--- a/offlineimap-switch
+++ b/offlineimap-switch
@@ -5,7 +5,11 @@ case `date +"%a"` in
offlineimap -a private
;;
*)
- offlineimap
+ if [[ -f ~/.holiday ]]; then
+ offlineimap -a private
+ else
+ offlineimap
+ fi
;;
esac