Skip to content

Commit

Permalink
remove msmtprc entry on del
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSmithxyz committed Feb 16, 2019
2 parents 8a5ee90 + 76cd73a commit 542ae00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mutt-wizard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ removeAccount() { sed -ie "
rm "$muttdir"/accounts/$1.muttrc
rm "$muttdir"/credentials/$1.gpg
rm -rf "$muttdir"/accounts/$1
sed -i "/$1.muttrc/d" "$muttdir"/personal.muttrc ;}
sed -i "/$1.muttrc/d" "$muttdir"/personal.muttrc
# Delete from the line matching the account name, until the next account or empty line
sed -i "/account $1/,/^\(\s*$\|account\)/d" ~/.msmtprc ;}
manual() { \
imap=$( dialog --inputbox "Insert the IMAP server for your email provider (excluding the port number)" 10 60 3>&1 1>&2 2>&3 3>&- )
Expand Down

0 comments on commit 542ae00

Please sign in to comment.