# muttrc file for the mail display
-# Copyright (C) 2007-2012 Simon Ruderich
+# Copyright (C) 2007-2013 Simon Ruderich
#
# This file is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Don't display help bar at the top of the screen.
set help=no
+# don't display sidebar, enabled by setup.sh if the sidebar patch is used:
+#set sidebar_visible=no
+
# automatically display html mails as plain text:
auto_view text/html
# but ensure plain mail is used if it exists:
# Setup script for mail configuration files.
-# Copyright (C) 2009-2012 Simon Ruderich
+# Copyright (C) 2009-2013 Simon Ruderich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. ../lib.sh
+
+generate cat mutt/display .in
+if mutt -v | grep sidebar >/dev/null 2>&1; then
+ echo 'mutt/display: enabling mutt sidebar settings'
+ sed 's/^#set sidebar_/set sidebar_/' mutt/display > mutt/display.tmp
+ mv mutt/display.tmp mutt/display
+fi
+
# Link setup.
link abook ~/.abook
link gnupg ~/.gnupg