diff --git a/.config/mail/abook.sh b/.config/mail/abook.sh new file mode 100755 index 00000000..36ed7d57 --- /dev/null +++ b/.config/mail/abook.sh @@ -0,0 +1,5 @@ +#!/bin/env bash + +# notmuch address "*" | awk -v term="$1" 'tolower($0) ~ tolower(term)' +notmuch address "*" | fzf --filter "$1" +# notmuch address "*" | grep -i "$1" diff --git a/.config/mail/aerc b/.config/mail/aerc new file mode 120000 index 00000000..11acb05c --- /dev/null +++ b/.config/mail/aerc @@ -0,0 +1 @@ +/home/fic/.config/aerc \ No newline at end of file diff --git a/.config/mail/afew b/.config/mail/afew new file mode 120000 index 00000000..4b7b2e1e --- /dev/null +++ b/.config/mail/afew @@ -0,0 +1 @@ +/home/fic/.config/afew \ No newline at end of file diff --git a/.config/mail/mail-sync.sh b/.config/mail/mail-sync.sh new file mode 100755 index 00000000..bd779fcc --- /dev/null +++ b/.config/mail/mail-sync.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +MBSYNC=$(pgrep mbsync) +NOTMUCH=$(pgrep notmuch) + +if [ -n "$MBSYNC" -o -n "$NOTMUCH" ]; then + echo "Already running one instance of mbsync or notmuch. Exiting..." + exit 0 +fi + +echo "Deleting messages tagged as *deleted*" +notmuch search --format=text0 --output=files tag:deleted | xargs -0 --no-run-if-empty rm -v + +mbsync -Va +notmuch new +afew --tag --new +maildir-rank-addr diff --git a/.config/mail/pkg.md b/.config/mail/pkg.md new file mode 100644 index 00000000..86cfe1f7 --- /dev/null +++ b/.config/mail/pkg.md @@ -0,0 +1,11 @@ +# Needed packages + +- aerc +- isync +- cyrus-ssl-xoauth2 +- notmuch +- hx (helix) +- w3m +- goimapnotify (via `go install`) +- maildir-rank-addr `go install github.com/ferdinandyb/maildir-rank-addr@latest` +- ugrep diff --git a/.config/mail/rank-config.toml b/.config/mail/rank-config.toml new file mode 120000 index 00000000..f384d68a --- /dev/null +++ b/.config/mail/rank-config.toml @@ -0,0 +1 @@ +/home/fic/.config/maildir-rank-addr/config \ No newline at end of file