update mutt

This commit is contained in:
Jessica Frazelle 2015-01-13 08:52:55 -08:00
parent d90605c6b8
commit 57415883b3
2 changed files with 7 additions and 2 deletions

View File

@ -5,7 +5,7 @@ set imap_user = "%GMAIL_LOGIN%"
set imap_pass = "%GMAIL_PASS%" # leave blank for prompt set imap_pass = "%GMAIL_PASS%" # leave blank for prompt
set smtp_url = "smtps://$imap_user@smtp.gmail.com:465/" set smtp_url = "smtps://$imap_user@smtp.gmail.com:465/"
set smtp_pass = "$imap_pass" # leave blank for prompt set smtp_pass = "$imap_pass" # leave blank for prompt
set from = "%GMAIL_LOGIN%" set from = "%GMAIL_FROM%"
set realname = "%GMAIL_NAME%" set realname = "%GMAIL_NAME%"
set signature = "~/.mutt/signature" set signature = "~/.mutt/signature"

View File

@ -5,7 +5,7 @@ if [ ! "$GMAIL" ]; then
echo >&2 'error: missing GMAIL environment variable' echo >&2 'error: missing GMAIL environment variable'
echo >&2 ' try running again with -e GMAIL=your-email@gmail.com' echo >&2 ' try running again with -e GMAIL=your-email@gmail.com'
echo >&2 ' optionally, you can also specify -e GMAIL_PASS' echo >&2 ' optionally, you can also specify -e GMAIL_PASS'
echo >&2 ' and also -e GMAIL_NAME="Your Name"' echo >&2 ' -e GMAIL_NAME="Your Name" and GMAIL_FROM=email@your-domain.com'
echo >&2 ' if not specified, both default to the value of GMAIL' echo >&2 ' if not specified, both default to the value of GMAIL'
exit 1 exit 1
fi fi
@ -14,9 +14,14 @@ if [ ! "$GMAIL_NAME" ]; then
GMAIL_NAME="$GMAIL" GMAIL_NAME="$GMAIL"
fi fi
if [ ! "$GMAIL_FROM" ]; then
GMAIL_FROM="$GMAIL"
fi
sed -i "s/%GMAIL_LOGIN%/$GMAIL/g" "$HOME/.mutt/muttrc" sed -i "s/%GMAIL_LOGIN%/$GMAIL/g" "$HOME/.mutt/muttrc"
sed -i "s/%GMAIL_NAME%/$GMAIL_NAME/g" "$HOME/.mutt/muttrc" sed -i "s/%GMAIL_NAME%/$GMAIL_NAME/g" "$HOME/.mutt/muttrc"
sed -i "s/%GMAIL_PASS%/$GMAIL_PASS/g" "$HOME/.mutt/muttrc" sed -i "s/%GMAIL_PASS%/$GMAIL_PASS/g" "$HOME/.mutt/muttrc"
sed -i "s/%GMAIL_FROM%/$GMAIL_FROM/g" "$HOME/.mutt/muttrc"
if [ -d "$HOME/.gnupg" ]; then if [ -d "$HOME/.gnupg" ]; then
{ {