diff options
Diffstat (limited to 'bin/fetch_mail.sh')
| -rwxr-xr-x | bin/fetch_mail.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/fetch_mail.sh b/bin/fetch_mail.sh new file mode 100755 index 0000000..2f10567 --- /dev/null +++ b/bin/fetch_mail.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -x +MAIL_DIR=/home/cem/Mail + +sync_toxic() { + local TOXIC_MAIL=$MAIL_DIR/toxiclabs + local TOXIC_NOTMUCH_CONFIG=$TOXIC_MAIL/notmuch-config + local TOXIC_MBSYNC_CONFIG=$TOXIC_MAIL/mbsyncrc + local TOXIC_NM_TAGS=$TOXIC_MAIL/tags.conf + + mbsync --config=$TOXIC_MBSYNC_CONFIG -q -a toxiclabs + notmuch --config=$TOXIC_NOTMUCH_CONFIG new + notmuch --config=$TOXIC_NOTMUCH_CONFIG tag --input=$TOXIC_NM_TAGS +} + +sync_toxic |
