aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-11-23 22:19:08 -0200
committerEuAndreh <eu@euandre.org>2018-11-23 22:19:08 -0200
commitcebd9537d0671f6f71371ed1a955f89ec6457c95 (patch)
tree2dbaa84a8cda2e617d679b3cc9888a922da94ff7 /scripts
parentArrange packages by category. (diff)
downloaddotfiles-cebd9537d0671f6f71371ed1a955f89ec6457c95.tar.gz
dotfiles-cebd9537d0671f6f71371ed1a955f89ec6457c95.tar.xz
Fetch mail once an hour.
Adapt mail.sh to be called on-demand.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mail.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/mail.sh b/scripts/mail.sh
index e9f14d8..c8f6522 100755
--- a/scripts/mail.sh
+++ b/scripts/mail.sh
@@ -1 +1,5 @@
-mbsync -aV &>> /tmp/mbsync.log && notmuch new &>> /tmp/notmuch.log
+if [ "$1" = "-s" ]; then
+ mbsync -a &>> /tmp/mbsync.log && notmuch new &>> /tmp/notmuch.log
+else
+ mbsync -aV && notmuch new
+fi