mutt-wizard

fork of Luke Smiths mutt-wizard
git clone git://git.jakekoroman.com/mutt-wizard
Log | Files | Refs | README | LICENSE

commit f83c45689b21fccb917fdb4c555280eaf19ef78f
parent 78030885b4e3153b69d408424beeb544adc093a8
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Wed,  6 Jan 2021 21:34:00 -0500

temporary soydevery

Diffstat:
Mbin/mw | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/bin/mw b/bin/mw @@ -157,6 +157,12 @@ delete() { if [ -z "${fulladdr+x}" ]; then sed -ibu "/[0-9]-$fulladdr.muttrc/d" "$muttrc" ; rm -f "$muttrc"bu sed -ibu "/account $fulladdr/,/^\(\s*$\|account\)/d" "$msmtprc"; rm -f "$msmtprc"bu pass rm -f "$pass_prefix$fulladdr" >/dev/null 2>&1 + + # Get rid of those multiple newlines because I don't know awk well enough to do it by default lol. + for file in "$msmtprc" "$mbsyncrc"; do + tr '\n' '|' < "$file" | sed "s/||\+/||/g" | tr '|' '\n' >> "$file"bu + mv -f "$file"bu "$file" + done } askinfo() { \