summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-05-05 10:20:58 -0700
committerLuke Smith <luke@lukesmith.xyz>2018-05-05 10:20:58 -0700
commit995b5a9ef2c637292d0da4c7a53924d7be2d97a1 (patch)
treef7bac9a408a16a19d66a58b9dcf818e1af0becf4
parent1d0afcc855d2c7fa1d1f021ca67d184698b2b91a (diff)
added delete to trash, also ham avoidance
-rwxr-xr-xmutt-wizard.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/mutt-wizard.sh b/mutt-wizard.sh
index 7be5ce0..23ae7ab 100755
--- a/mutt-wizard.sh
+++ b/mutt-wizard.sh
@@ -88,12 +88,14 @@ detectMailboxes() { \
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')
+ spoolfile=$(grep -vi /tmp/$1_boxes -e "trash\|drafts\|sent\|trash\|spam\|ham\|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)
+ trash=$(grep -i /tmp/$1_boxes -e trash | 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 ;}
+ echo "set postponed = \"$postponed\"" >> "$muttdir"accounts/$1.muttrc
+ echo "set trash = \"$trash\"" >> "$muttdir"accounts/$1.muttrc ;}
# Get all accounts in ~/.offlineimaprc and load into variable `accounts`.
getAccounts() { \