pseudomailboxes fix
This commit is contained in:
parent
d951fb64c5
commit
b3ab7aacf8
2
bin/mw
2
bin/mw
@ -242,7 +242,7 @@ finalize() { \
|
|||||||
trash=$(echo "$boxes" | grep -i -m 1 trash | sed 's/=/+/g')
|
trash=$(echo "$boxes" | grep -i -m 1 trash | sed 's/=/+/g')
|
||||||
sed -ibu "/^mailboxes\|^set record\|^set postponed\|^set trash\|^set spoolfile/d" "$accdir/$idnum-$title.muttrc" ; rm -f "$accdir/$idnum-$title.muttrcbu"
|
sed -ibu "/^mailboxes\|^set record\|^set postponed\|^set trash\|^set spoolfile/d" "$accdir/$idnum-$title.muttrc" ; rm -f "$accdir/$idnum-$title.muttrcbu"
|
||||||
{ echo "set spoolfile = \"$spoolfile\""; echo "set record = \"$record\""; echo "set postponed = \"$postponed\""; echo "set trash = \"$trash\""; } >> "$accdir/$idnum-$title.muttrc"
|
{ echo "set spoolfile = \"$spoolfile\""; echo "set record = \"$record\""; echo "set postponed = \"$postponed\""; echo "set trash = \"$trash\""; } >> "$accdir/$idnum-$title.muttrc"
|
||||||
echo "mailboxes =$title ===================== $(echo "$boxes" | sed -e "s/^\|$/\"/g" | tr "\n" " ")" >> "$accdir/$idnum-$title.muttrc"
|
echo "mailboxes $(echo "$boxes" | sed -e "s/^\|$/\"/g" | tr "\n" " ")" >> "$accdir/$idnum-$title.muttrc"
|
||||||
printf "Setting up your keyboard shortcuts for jumping between mailboxes...\\n"
|
printf "Setting up your keyboard shortcuts for jumping between mailboxes...\\n"
|
||||||
sed -ibu "/# mw-autogenerated/d" "$accdir/$idnum-$title.muttrc" ; rm -f "$accdir/$idnum-$title.muttrcbu"
|
sed -ibu "/# mw-autogenerated/d" "$accdir/$idnum-$title.muttrc" ; rm -f "$accdir/$idnum-$title.muttrcbu"
|
||||||
echo "$boxes" | grep -i inbox | head -n 1 | formatShortcut i inbox
|
echo "$boxes" | grep -i inbox | head -n 1 | formatShortcut i inbox
|
||||||
|
Loading…
Reference in New Issue
Block a user