diff options
author | Luke <luke@lukesmith.xyz> | 2018-02-21 08:12:46 -0700 |
---|---|---|
committer | Luke <luke@lukesmith.xyz> | 2018-02-21 08:12:46 -0700 |
commit | 66215ba1a7d8442aa87a41656f6e37247cc6e0d5 (patch) | |
tree | bcaeaf37ab9e3c917854778c8b2185a3719a9caf | |
parent | a20cd4493f027b52a569d1ef5e5bfabf64df96ad (diff) |
only one box at a time selected
-rwxr-xr-x | mutt-wizard.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mutt-wizard.sh b/mutt-wizard.sh index 8ac3502..d5092ee 100755 --- a/mutt-wizard.sh +++ b/mutt-wizard.sh @@ -43,11 +43,11 @@ detectMailboxes() { \ echo mailboxes $oneline >> "$muttdir"accounts/$1.muttrc sed -i "/^macro index,pager g/d" "$muttdir"accounts/$1.muttrc grep -vi /tmp/$1_boxes -e "trash\|drafts\|sent\|trash\|spam\|junk\|archive\|chat\|old\|new\|gmail\|sms\|call" | sort -n | sed 1q | formatShortcut i inbox $1 - grep -i /tmp/$1_boxes -e sent | formatShortcut s sent $1 - grep -i /tmp/$1_boxes -e draft | formatShortcut d drafts $1 - grep -i /tmp/$1_boxes -e trash | formatShortcut t trash $1 - grep -i /tmp/$1_boxes -e spam | formatShortcut S spam $1 - grep -i /tmp/$1_boxes -e archive | formatShortcut a archive $1 + grep -i /tmp/$1_boxes -e sent | sed 1q | formatShortcut s sent $1 + grep -i /tmp/$1_boxes -e draft | sed 1q | formatShortcut d drafts $1 + grep -i /tmp/$1_boxes -e trash | sed 1q | formatShortcut t trash $1 + grep -i /tmp/$1_boxes -e spam | sed 1q | formatShortcut S spam $1 + grep -i /tmp/$1_boxes -e archive | sed 1q | formatShortcut a archive $1 spoolfile=$(grep -vi /tmp/$1_boxes -e "trash\|drafts\|sent\|trash\|spam\|junk\|archive\|chat\|old\|new\|gmail\|sms\|call" | sort -n | sed 1q | sed -e 's/=/+/g') record=$(grep -i /tmp/$1_boxes -e sent | sed -e 's/=/+/g' | sed 1q) postponed=$(grep -i /tmp/$1_boxes -e draft | sed -e 's/=/+/g' | sed 1q) |