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