aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall17
1 files changed, 17 insertions, 0 deletions
diff --git a/install b/install
index 375bb8b6..3cae463f 100755
--- a/install
+++ b/install
@@ -103,8 +103,25 @@ while getopts :dgmnrtx opt; do
# Mutt
m)
+ # Warn about some non-obvious dependencies if necessary
+ for depends in abook msmtp; do
+ if ! hash "$depends" 2>/dev/null; then
+ printf '%s: warning: %s(1) not found\n' \
+ "$self" "$depends" >&2
+ fi
+ done
+
+ # Link in files
lns "$dotfiles"/mutt/muttrc "$HOME"/.muttrc
lns "$dotfiles"/mutt "$HOME"/.mutt
+
+ # Create empty stubs if applicable
+ touch "$HOME"/.mutt/muttrc.local \
+ "$HOME"/.mutt/signature
+
+ # Create mailboxes and cache directories
+ mkdir -p "$HOME"/Mail/{inbox,sent} \
+ "$HOME"/.cache/mutt
;;
# Ncmcpp