Browse Source

fix sidebar header showed only 'com'

pull/276/head
Roland Puntaier 5 years ago
parent
commit
8c29e3d73b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      bin/mw

+ 2
- 1
bin/mw View File

@@ -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


Loading…
Cancel
Save