mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit cb85b88fc87e0e7fdea81080f1c7b3a3ce2338a7
parent d6bafc3723f267a41fc8635157a7875ad699661f
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue, 11 Sep 2018 10:03:37 +0200

mutt config for each machine

Diffstat:
my-mutt | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/my-mutt b/my-mutt @@ -4,15 +4,20 @@ # see https://unix.stackexchange.com/q/90399 echo sleep 0.04 +HOSTNAME=$(hostname | cut -d '.' -f1) +FOLDER="$HOME/config/private/mutt" +FILE="$FOLDER/machines/$HOSTNAME" -if grep "^`hostname | cut -d '.' -f1`$" ~/.mutt/local_email > /dev/null +$(hostname | cut -d '.' -f1) + +if [ -f "$FILE" ] then # local email # -e "push '<limit>~(! ~D)<enter>G'" - neomutt "$@" + neomutt -F "$FILE" else # remote email # -e "push '<limit>~(! ~D)<enter>G'" - neomutt -F ~/.mutt/imap "$@" + neomutt -F "$FOLDER/imap" "$@" fi