Update 2023-03-06 08:14 OpenBSD/amd64

This commit is contained in:
c0dev0id
2023-03-06 08:14:38 +01:00
parent eaf9fb040c
commit 5884be7d10
8 changed files with 76 additions and 53 deletions

View File

@@ -1,10 +1,23 @@
#!/bin/sh
ALIASES=$(ksh -ic alias | grep ^mutt- | cut -d= -f1)
# ALIASES=$(ksh -ic alias | grep ^mutt- | cut -d= -f1)
#
# MAILBOX="imaps://mail.codevoid.de"
#
# SEL=$(printf "$ALIASES" | $DMENU_CMD -p Mutt)
#
# [ -z "$SEL" ] || texec $SEL
. $HOME/.bin/_config
MAILBOX="imaps://mail.codevoid.de"
MAILBOXES=$(cd ~/.emails && find Mailboxes/*/ \
-mindepth 1 -maxdepth 1 -type d \
-not -path "*/tmp*" \
-not -path "*/cur*" \
-not -path "*/new*")
SEL=$(printf "$ALIASES" | $DMENU_CMD -p Mutt)
HOST="imaps://mail.codevoid.de"
[ -z "$SEL" ] || texec $SEL
SEL=$(echo "$MAILBOXES" | $DMENU_CMD -p Mutt)
[ -z "$SEL" ] || texec "mutt -F $HOME/.mutt/rc-account-private -f $HOST/$SEL"