dir=~/etc/dotfiles
olddir=~/etc/dotfiles.bak
files="vimrc bashrc bash_profile Xresources gitconfig gitignore xinitrc"
+directories="mutt"
##########
#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
+
+
--- /dev/null
+text/html; w3m -I %{charset} -T text/html; copiousoutput
--- /dev/null
+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
--- /dev/null
+# Macro keys for different mailboxes
+macro index <f2> '<sync-mailbox><change-folder>imaps://mail.friedersdorff.com<enter>'
+macro index <f3> '<sync-mailbox><change-folder>imaps://outlook.office365.com<enter>'
+macro index <f4> '<sync-mailbox><change-folder>imaps://imap.gmail.com<enter>'
+
+# 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