From 296c6b9ee85209c0ce375717e30686545baea107 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Sat, 2 May 2026 14:09:27 +0200 Subject: Save new changes --- bin/fetch_mail.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/fetch_mail.sh (limited to 'bin/fetch_mail.sh') 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 -- cgit v1.2.3