From 3aa8df7dfdd8a34e6f677a312ba038dadde5f49b Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Wed, 27 Jan 2016 10:40:52 +0000 Subject: [PATCH] Commit mutt config files. --- makelinks.sh | 13 +++++++++++-- mutt/mailcap | 1 + mutt/makelinks.sh | 19 +++++++++++++++++++ mutt/muttrc | 15 +++++++++++++++ 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 mutt/mailcap create mode 100755 mutt/makelinks.sh create mode 100644 mutt/muttrc diff --git a/makelinks.sh b/makelinks.sh index 286e9f0..90ba16f 100755 --- a/makelinks.sh +++ b/makelinks.sh @@ -9,6 +9,7 @@ dir=~/etc/dotfiles olddir=~/etc/dotfiles.bak files="vimrc bashrc bash_profile Xresources gitconfig gitignore xinitrc" +directories="mutt" ########## @@ -22,6 +23,14 @@ cd $dir #then create symlinks from the homedir to any files in the #~/dotfiles directory specified in $files for file in $files; do - mv ~/.$file $olddir/ - ln -s $dir/$file ~/.$file + mv ~/.$file $olddir/ + ln -s $dir/$file ~/.$file done + +# For every directory execute the install file. +for directory in $directories; do + mkdir -p ~/.$directory + source ./$directory/makelinks.sh +done + + diff --git a/mutt/mailcap b/mutt/mailcap new file mode 100644 index 0000000..c9f551b --- /dev/null +++ b/mutt/mailcap @@ -0,0 +1 @@ +text/html; w3m -I %{charset} -T text/html; copiousoutput diff --git a/mutt/makelinks.sh b/mutt/makelinks.sh new file mode 100755 index 0000000..18f2443 --- /dev/null +++ b/mutt/makelinks.sh @@ -0,0 +1,19 @@ +dir=~/etc/dotfiles/mutt +olddir=~/etc/dotfiles.bak/mutt +target=~/.mutt +files="account.com.friedersdorff.max account.com.gmail.maxf130 account.uk.ac.le.student.mf195 mailcap muttrc" +directories="com.friedersdorff.max com.gmail.maxf130.account uk.ac.le.student.mf195" + +mkdir -p $olddir + +cd $dir + +for file in $files; do + mv $target/$file $olddir/ + ln -s $dir/$file $target/$file +done + +for directory in $directories; do + mkdir -p $target/$directory + /bin/bash $dir/$directory/makelinks.sh +done diff --git a/mutt/muttrc b/mutt/muttrc new file mode 100644 index 0000000..10986d1 --- /dev/null +++ b/mutt/muttrc @@ -0,0 +1,15 @@ +# Macro keys for different mailboxes +macro index 'imaps://mail.friedersdorff.com' +macro index 'imaps://outlook.office365.com' +macro index 'imaps://imap.gmail.com' + +# Configuration files for different mailboxes +folder-hook 'friedersdorff.com' 'source ~/.mutt/account.com.friedersdorff.max' +folder-hook 'office365.com' 'source ~/.mutt/account.uk.ac.le.student.mf195' +folder-hook 'gmail.com' 'source ~/.mutt/account.com.gmail.maxf130' + +# Always check personal email first +source ~/.mutt/account.com.friedersdorff.max + +auto_view text/html +alternative_order text/plain text/enriched text/html -- 2.46.2