Commit 3e48041
xxwhirlpool
·
2026-09-11 21:05:21 -0400 EDT
parent df78830
email, misc
8 files changed,
+83,
-2
+1,
-0
1@@ -56,6 +56,7 @@ config/.local/bin/vapoursynth
2 config/.local/bin/vspipe
3 config/.local/bin/vsscale
4 config/.local/bin/rolodex
5+config/.local/bin/wego
6
7 .directory
8 scripts/Scripts/.directory
1@@ -21,6 +21,9 @@ set postponed = "+Drafts"
2 set record = "+Sent"
3 set trash = "+Trash"
4
5+set nm_default_url = "notmuch:///home/kat/.local/mail/melodicake@disroot.org"
6+set virtual_spool_file = yes
7+
8 mailboxes =Drafts =Sent =Junk =Trash
9
10 # where the stuff goes
+12,
-1
1@@ -10,7 +10,18 @@ folder-hook "melodicake_disroot" "source $XDG_CONFIG_HOME/mutt/melodicake_disroo
2 folder-hook "witnesslachesis_disroot" "source $XDG_CONFIG_HOME/mutt/witnesslachesis_disroot.rc"
3
4 # accounts
5+# ctrl+a & ctrl+b
6 source $XDG_CONFIG_HOME/mutt/melodicake_disroot.rc
7 macro index \Ca "<sync-mailbox><refresh><enter-command>source $XDG_CONFIG_HOME/mutt/melodicake_disroot.rc<enter><change-folder>!<enter>"
8 macro index \Cb "<sync-mailbox><refresh><enter-command>source $XDG_CONFIG_HOME/mutt/witnesslachesis_disroot.rc<enter><change-folder>!<enter>"
9-macro index o "<shell-escape>mbsync -a<Enter>" "sync all mail with mbsync"
10+
11+# sync mail
12+# o for melo
13+# p for lachesis
14+macro index o "<shell-escape>syncmail melo<Enter>" "sync & index all mail on melo"
15+macro index p "<shell-escape>syncmail lachesis<Enter>" "sync & index all mail on lachesis"
16+
17+# urlscan
18+# ctrl+u
19+macro index,pager \cu "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message"
20+macro attach,compose \cu "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message"
1@@ -21,6 +21,9 @@ set postponed = "+Drafts"
2 set record = "+Sent"
3 set trash = "+Trash"
4
5+set nm_default_url = "notmuch:///home/kat/.local/mail/witnesslachesis@disroot.org"
6+set virtual_spool_file = yes
7+
8 mailboxes =Drafts =Sent =Junk =Trash
9
10 # where the stuff goes
1@@ -0,0 +1,19 @@
2+[database]
3+path=/home/kat/.local/mail/witnesslachesis@disroot.org
4+
5+[user]
6+name=kat cain
7+primary_email=witnesslachesis@disroot.org
8+
9+[new]
10+tags=unread;inbox;
11+ignore=
12+
13+[search]
14+exclude_tags=deleted;spam;
15+
16+[maildir]
17+synchronize_flags=true
18+
19+[crypto]
20+gpg_path=gpg
1@@ -0,0 +1,20 @@
2+[database]
3+path=/home/kat/.local/mail/melodicake@disroot.org
4+
5+[user]
6+name=kat cain
7+primary_email=melodicake@disroot.org
8+
9+[new]
10+tags=unread;inbox;
11+ignore=
12+
13+[search]
14+exclude_tags=deleted;spam;
15+
16+[maildir]
17+synchronize_flags=true
18+
19+[crypto]
20+gpg_path=gpg
21+
+23,
-0
1@@ -0,0 +1,23 @@
2+#!/usr/bin/env bash
3+
4+# pick addr based on arg
5+# e.g. `syncmail melo`
6+if [[ "$1" == "melo" ]]; then
7+ addr="$HOME/.config/notmuch/.notmuch-config-melo"
8+elif [[ "$1" == "lachesis" ]]; then
9+ addr="$HOME/.config/notmuch/.notmuch-config-lachesis"
10+elif [[ "$#" -eq 0 || "$1" != "melo" || "$1" != "lachesis" ]]; then
11+ echo "no addr or wrong addr"
12+ exit 1
13+fi
14+
15+# use right config
16+notmuchsync() {
17+ notmuch --config="$addr" "$@"
18+}
19+
20+# sync all mail
21+mbsync -a
22+
23+# index mail
24+notmuchsync new
+2,
-1
1@@ -24,9 +24,10 @@ vidsubs() {
2 }
3
4 vidhash() {
5+ shopt -s nullglob
6 # borrowed from my buddy neckspike:
7 # https://pastebin.com/mg3CVDiU
8- for f in *.mkv; do
9+ for f in *.{mkv,mp4}; do
10 hash=$(crc32 "$f" | tr '[:lower:]' '[:upper:]')
11 ext="${f##*.}"
12 newname="${f%.*} [$hash]".$ext