aboutsummaryrefslogtreecommitdiff
path: root/scripts/mail.sh
blob: 1446485a6b525db2f6c8914f2b2f1a6ab3d76be7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

if [ "$1" = "-s" ]; then
  mbsync -aV &>> /tmp/mbsync.log && notmuch new &>> /tmp/notmuch.log
else
  mbsync EuAndreh &
  mbsync Nubank   &
  mbsync Gmail    &
  wait
  notmuch new 2> /dev/null
fi