From 8c29e3d73bf980d07669a31fc345406aeca287d1 Mon Sep 17 00:00:00 2001 From: Roland Puntaier Date: Wed, 28 Aug 2019 12:36:41 +0200 Subject: [PATCH] fix sidebar header showed only 'com' --- bin/mw | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mw b/bin/mw index 6724330..0024c3c 100755 --- a/bin/mw +++ b/bin/mw @@ -257,7 +257,8 @@ finalize() { trash=$(echo "$boxes" | grep -i -m 1 trash | sed 's/=/+/g') sed -i "/^mailboxes\|^set record\|^set postponed\|^set trash\|^set spoolfile/d" "$mwaccdir/$idnum-$mwaccount.muttrc" { echo "set spoolfile = \"$spoolfile\""; echo "set record = \"$record\""; echo "set postponed = \"$postponed\""; echo "set trash = \"$trash\""; } >> "$mwaccdir/$idnum-$mwaccount.muttrc" - echo "mailboxes =$mwaccount ===================== $(echo "$boxes" | sed -e "s/^\|$/\"/g" | tr "\n" " ")" >> "$mwaccdir/$idnum-$mwaccount.muttrc" + echo "mailboxes =${mwaccount//[.@]/_} ===================== $(echo "$boxes" | sed -e "s/^\|$/\"/g" | tr "\n" " ")" + >> "$mwaccdir/$idnum-$mwaccount.muttrc" printf "Setting up your keyboard shortcuts for jumping between mailboxes...\\n" sed -i "/# mw-autogenerated/d" "$mwaccdir/$idnum-$mwaccount.muttrc" echo "$boxes" | grep -i inbox | head -n 1 | formatShortcut i inbox