summaryrefslogtreecommitdiff
path: root/bin/fetch_mail.sh
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2026-05-02 14:09:27 +0200
committerCarlos Maiolino <[email protected]>2026-05-02 14:09:27 +0200
commit296c6b9ee85209c0ce375717e30686545baea107 (patch)
treef0da71650e8f58ca528589ad4e39476732fa5b88 /bin/fetch_mail.sh
parentb2e1a1cb259e482720430ff9898d2e564ee73d0f (diff)
Save new changesHEADmaster
Diffstat (limited to 'bin/fetch_mail.sh')
-rwxr-xr-xbin/fetch_mail.sh16
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