summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke <luke@lukesmith.xyz>2018-02-21 08:07:59 -0700
committerLuke <luke@lukesmith.xyz>2018-02-21 08:07:59 -0700
commita20cd4493f027b52a569d1ef5e5bfabf64df96ad (patch)
treec79dcb96c78116bfc49e599b0a9c2f101ef956d1
parent4b186c6370593d6a0f43ca3ad1745e9af9f02225 (diff)
sent and postponed only one line
-rwxr-xr-xmutt-wizard.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/mutt-wizard.sh b/mutt-wizard.sh
index 2f2fa04..8ac3502 100755
--- a/mutt-wizard.sh
+++ b/mutt-wizard.sh
@@ -49,8 +49,8 @@ detectMailboxes() { \
grep -i /tmp/$1_boxes -e spam | formatShortcut S spam $1
grep -i /tmp/$1_boxes -e archive | 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')
- postponed=$(grep -i /tmp/$1_boxes -e draft | 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)
echo "set spoolfile = \"$spoolfile\"" >> "$muttdir"accounts/$1.muttrc
echo "set record = \"$record\"" >> "$muttdir"accounts/$1.muttrc
echo "set postponed = \"$postponed\"" >> "$muttdir"accounts/$1.muttrc ;}