Commit 3e48041

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