dotfiles/.bin/dexec_mail

24 lines
579 B
Plaintext
Raw Normal View History

2022-12-06 08:01:44 +01:00
#!/bin/sh
2023-03-06 08:14:38 +01:00
# 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
2022-12-06 08:01:44 +01:00
. $HOME/.bin/_config
2023-03-06 08:14:38 +01:00
MAILBOXES=$(cd ~/.emails && find Mailboxes/*/ \
-mindepth 1 -maxdepth 1 -type d \
-not -path "*/tmp*" \
-not -path "*/cur*" \
-not -path "*/new*")
2022-12-06 08:01:44 +01:00
2023-03-06 08:14:38 +01:00
HOST="imaps://mail.codevoid.de"
2022-12-06 08:01:44 +01:00
2023-03-06 08:14:38 +01:00
SEL=$(echo "$MAILBOXES" | $DMENU_CMD -p Mutt)
[ -z "$SEL" ] || texec "mutt -F $HOME/.mutt/rc-account-private -f $HOST/$SEL"