]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Commit mutt config files.
authorMaximilian Friedersdorff <maxf130@gmail.com>
Wed, 27 Jan 2016 10:40:52 +0000 (10:40 +0000)
committerMaximilian Friedersdorff <maxf130@gmail.com>
Wed, 27 Jan 2016 10:40:52 +0000 (10:40 +0000)
makelinks.sh
mutt/mailcap [new file with mode: 0644]
mutt/makelinks.sh [new file with mode: 0755]
mutt/muttrc [new file with mode: 0644]

index 286e9f00230d6f0cfadd4157d39978b5c3b63d31..90ba16f333dc244f981d6f4eadd3d1db55e3f7b3 100755 (executable)
@@ -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 (file)
index 0000000..c9f551b
--- /dev/null
@@ -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 (executable)
index 0000000..18f2443
--- /dev/null
@@ -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 (file)
index 0000000..10986d1
--- /dev/null
@@ -0,0 +1,15 @@
+# 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