From 7e14425ec701a4c764a677f7a774c41b61fe4793 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 10 Feb 2018 09:00:03 -0700 Subject: [PATCH] muttdir fixed --- mutt_install.sh | 12 ++++++------ removeaccount.sh | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mutt_install.sh b/mutt_install.sh index 40cc4f6..c9ac842 100755 --- a/mutt_install.sh +++ b/mutt_install.sh @@ -62,12 +62,12 @@ replacement=" addAccount() { -if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header ~/.offlineimaprc; fi -cat "$muttdir"autoconf/offlineimap_profile | sed -e "$replacement" >> ~/.offlineimaprc -# Add the mutt profile. -cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc -# Add on offlineimaprc sync list. -sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =$/accounts = $title/g" ~/.offlineimaprc ;} + if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header ~/.offlineimaprc; fi + cat "$muttdir"autoconf/offlineimap_profile | sed -e "$replacement" >> ~/.offlineimaprc + # Add the mutt profile. + cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc + # Add on offlineimaprc sync list. + sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =$/accounts = $title/g" ~/.offlineimaprc ;} addAccount diff --git a/removeaccount.sh b/removeaccount.sh index 1d1cbcc..43bf3b9 100755 --- a/removeaccount.sh +++ b/removeaccount.sh @@ -1,5 +1,5 @@ #!/bin/sh -muttdir="$HOME/Repos/email-mutt-offline/" +muttdir="$HOME/.config/mutt/" # This script will remove an account from ~/.offlineimaprc and the # designated location in ~/.config/mutt/accounts. @@ -17,4 +17,4 @@ removeAccount() { sed -ie " " ~/.offlineimaprc rm "$muttdir"accounts/$title.muttrc echo $title deleted. ;} -removeAccount $title +#removeAccount $title