diff options
| author | Carlos Maiolino <[email protected]> | 2026-05-02 14:09:27 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2026-05-02 14:09:27 +0200 |
| commit | 296c6b9ee85209c0ce375717e30686545baea107 (patch) | |
| tree | f0da71650e8f58ca528589ad4e39476732fa5b88 /bin/sync_mail.sh | |
| parent | b2e1a1cb259e482720430ff9898d2e564ee73d0f (diff) | |
Diffstat (limited to 'bin/sync_mail.sh')
| -rwxr-xr-x | bin/sync_mail.sh | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/bin/sync_mail.sh b/bin/sync_mail.sh index b718b9a..2bf04c5 100755 --- a/bin/sync_mail.sh +++ b/bin/sync_mail.sh @@ -2,9 +2,22 @@ MBSYNC=`which mbsync` NOTMUCH=`which notmuch` -MUTT_DIR=/home/cmaiolino/.mutt -MAIL_DIR=/home/cmaiolino/Mail +MUTT_DIR=/home/cem/.mutt +MAIL_DIR=/home/cem/Mail +sync_toxic() { + local TOXIC_MAIL=$MAIL_DIR/toxiclabs + local MBSYNC_CONFIG=$TOXIC_MAIL/mbsyncrc + local NOTMUCH_TAGS=$TOXIC_MAIL/toxic_nmtag.conf + local TOXIC_MUTTRC=$MUTT_DIR/muttrc-toxiclabs + local TOXIC_NM_CONFIG=$TOXIC_MAIL/notmuch-config + local TOXIC_NM_TAGS=$TOXIC_MAIL/toxic_nmtag.conf + + mbsync --config=$MBSYNC_CONFIG -a -q + + notmuch --config=$KORG_NM_CONFIG new + notmuch --config=$KORG_NM_CONFIG tag --input=$KORG_NM_TAGS +} sync_redhat() { local RH_MAIL=$MAIL_DIR/redhat local MBSYNC_CONFIG=$RH_MAIL/mbsyncrc @@ -14,7 +27,7 @@ sync_redhat() { } sync_korg() { - local KORG_MAIL=$MAIL_DIR/kernel + local KORG_MAIL=$MAIL_DIR/Kernel local MBSYNC_CONFIG=$KORG_MAIL/mbsyncrc local NOTMUCH_TAGS=$KORG_MAIL/kernel_nmtag.conf local KORG_MUTTRC=$MUTT_DIR/muttrc-kernel @@ -29,3 +42,4 @@ sync_korg() { sync_redhat sync_korg +sync_toxic |
