aboutsummaryrefslogtreecommitdiff
path: root/scripts/mail.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mail.sh')
-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