Browse Source

detectmail fix

tags/v3.1
Luke Smith 6 years ago
parent
commit
10deec70e3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mutt-wizard.sh

+ 1
- 1
mutt-wizard.sh View File

@@ -75,7 +75,7 @@ gen_delim() { \


detectMailboxes() { \ detectMailboxes() { \
find ~/.mail/$1 -maxdepth 1 -mindepth 1 -type d | sed -e "s/.*\///g;s/^/=/g" > /tmp/$1_boxes find ~/.mail/$1 -maxdepth 1 -mindepth 1 -type d | sed -e "s/.*\///g;s/^/=/g" > /tmp/$1_boxes
sidebar_width=$(sed -n -e '/^set sidebar_width/p' "$muttdir"/muttrc | awk -F'=' '{print $2}')
sidebar_width=$(sed -n -e '/^set sidebar_width/p' "$muttdir"muttrc | awk -F'=' '{print $2}')
delim=$(gen_delim $sidebar_width) delim=$(gen_delim $sidebar_width)
oneline=$(cat /tmp/$1_boxes | sed -e "s/^\|$/\"/g" | tr "\n" " ") oneline=$(cat /tmp/$1_boxes | sed -e "s/^\|$/\"/g" | tr "\n" " ")
oneline="=$1 $delim $oneline" oneline="=$1 $delim $oneline"


Loading…
Cancel
Save