commit 0f8c27918d0dbc11d5577180f8cf1a6c473da7af
parent da31840c15898eb52d1d8cce7946e92a267b779d
Author: Luke <luke@lukesmith.xyz>
Date: Wed, 14 Feb 2018 10:38:52 -0700
readme fixes
Diffstat:
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
@@ -24,11 +24,13 @@ The only email provider which I think will *not* work (and will never work) is P
dialog, neomutt and offlineimap should be installed. The contents of this repo should go directly in `~/.config/mutt/` and run from there. You also need to have a GPG public/private key pair for the wizard to automatically store your passwords. Otherwise you'll have to store them insecurely in plaintext files without the help of the wizard.
-Just run `mutt-wizard.sh` for all the options.
+Just run `mutt-wizard.sh` for all the options, to install an account:
-Once you successfully run the script, you should be able to simply run `offlineimap` to start your mail sync (which will be big at first). Opening `neomutt`, you should see your mail.
+* First, select the "Add an account" option and give the script your account information.
+* Second, in a separate terminal, start your mail sync my running `offlineimap` or `offlineimap -a <your account name>`. This will start downloading all your mail for offline access.
+* Third, once your mailbox has started to download, reenter the script and select the "Auto-detect mailboxes" open. This will finalize the install and let you open up mutt to see your mail.
-Note that once you run `offlineimap`, you'll want to reopen the script and select the option to autodetect mailboxes to put the finishing touches and to let you switch from mailbox-to-mailbox in just two key presses.
+Whenever you want to check for mail, just run the `offlineimap` command again.
### "Wait? The script asks for my passwords?"
diff --git a/mutt-wizard.sh b/mutt-wizard.sh
@@ -40,13 +40,13 @@ detectMailboxes() { \
sed -i "/^mailboxes\|^set spoolfile\|^set record\|^set postponed/d" "$muttdir"accounts/$1.muttrc
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" | sort -n | sed 1q | formatShortcut i inbox $1
+ 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
- spoolfile=$(grep -vi /tmp/$1_boxes -e "trash\|drafts\|sent\|trash\|spam\|junk\|archive\|chat\|old\|new\|gmail" | sort -n | sed 1q | sed -e 's/=/+/g')
+ 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')
echo "set spoolfile = \"$spoolfile\"" >> "$muttdir"accounts/$1.muttrc