my-mutt (434B)
1 #!/bin/bash 2 3 # this seems needed to make it work with urxvt... 4 # see https://unix.stackexchange.com/q/90399 5 echo 6 sleep 0.04 7 HOSTNAME=$(hostname | cut -d '.' -f1) 8 FOLDER="$HOME/config/private/mutt" 9 FILE="$FOLDER/machines/$HOSTNAME" 10 11 if [ -f "$FILE" ] 12 then 13 # local email 14 # -e "push '<limit>~(! ~D)<enter>G'" 15 neomutt -F "$FILE" "$@" 16 else 17 # remote email 18 # -e "push '<limit>~(! ~D)<enter>G'" 19 neomutt -F "$FOLDER/imap" "$@" 20 fi 21