From 6c63fa2cc27cb84eb1c44009dde52545453b4194 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 14 Sep 2012 15:28:45 -0400 Subject: [PATCH] posts:mutt: prefer single quotes over double quotes. --- posts/Mutt.mdwn | 54 ++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/posts/Mutt.mdwn b/posts/Mutt.mdwn index c9ba4bb..e0e8e21 100644 --- a/posts/Mutt.mdwn +++ b/posts/Mutt.mdwn @@ -25,11 +25,11 @@ Drexel email system, I looked up the server addresses, and created the # login information set imap_user='@drexel.edu' set imap_pass='' - set from="@drexel.edu" + set from='@drexel.edu' set use_from=yes # required so msmtp knows which account to use to send mails # setting your realname is optional, but drexel addresses can be cryptic... - set realname="" + set realname='' # email server location set spoolfile=imaps://@imap.mail.drexel.edu:993/INBOX @@ -45,7 +45,7 @@ Drexel email system, I looked up the server addresses, and created the set mail_check=600 # check for new mail every 10 minutes when user is active set timeout=600 # check for new mail every 10 min. when user is not active - set editor="/usr/bin/emacs -nw" # use emacs for writing emails + set editor='/usr/bin/emacs -nw' # use emacs for writing emails set edit_headers # allow editing headers while you're in emacs Since this file contains your password, you should not allow other @@ -165,8 +165,8 @@ Configure mutt with # switch FROM field so msmtp changes sending account # http://home.nyc.rr.com/computertaijutsu/mutt.html - macro generic "1" ":set from='@drexel.edu'" - macro generic "2" ":set from='@gmail.com'" + macro generic '1' ":set from='@drexel.edu'" + macro generic '2' ":set from='@gmail.com'" # no send2-hook in version 1.4.2.2i send-hook '~f @drexel.edu' 'set sendmail="/usr/local/bin/msmtp "' send-hook '~f @gmail.com' 'set sendmail="/usr/local/bin/msmtp -a gmail"' @@ -197,14 +197,14 @@ The specific configuration files are: The common configuration (these are all optional): #~/.mutt/common - set realname="" + set realname='' set move=no # stop asking to "move read messages to mbox" set mail_check=600 # check for new mail every 10 minutes when user is active set timeout=600 # check for new mail every 10 minutes when user is not active - set editor="/usr/bin/emacs -nw" # use emacs as the editor + set editor='/usr/bin/emacs -nw' # use emacs as the editor set edit_headers # editable headers The Drexel setup: @@ -226,7 +226,7 @@ The Drexel setup: # see ~/.msmtp for configuration set sendmail=/usr/local/bin/msmtp - set from="@drexel.edu" + set from='@drexel.edu' The Gmail setup: @@ -243,9 +243,9 @@ The Gmail setup: # use msmtp to send outgoing mail to the mailserver # see ~/.msmtp for configuration - set sendmail="/usr/local/bin/msmtp -a gmail" + set sendmail='/usr/local/bin/msmtp -a gmail' - set from="@gmail.com" + set from='@gmail.com' Firing up `mutt` takes you to your Drexel inbox like you're used to. You can change directories like your used to with `c`. You switch @@ -284,12 +284,12 @@ a `.mutt/comcast` file: # use msmtp to send outgoing mail to the mailserver # see ~/.msmtp for configuration - set sendmail="/usr/local/bin/msmtp -a gmail" + set sendmail='/usr/local/bin/msmtp -a gmail' - set from="@gmail.com" + set from='@gmail.com' set nopop_delete - set pop_checkinterval="600" + set pop_checkinterval=600 Where the gmail stuff is because I'm sending mail using Gmail when I'm looking at my Comcast account. This avoids using Comcast as much as @@ -340,23 +340,23 @@ to your `.muttrc` file and creating `~/.mutt/pgp` as follows # `Everything You Need To Know To Start Using GnuPG with Mutt' # http://codesorcery.net/old/mutt/mutt-gnupg-howto - set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f" - set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f" - set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f" - set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" - set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" - set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0xFC29BDCDF15F5BE8 -- -r %r -- %f" - set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0xFC29BDCDF15F5BE8 -- -r %r -- %f" - set pgp_import_command="gpg --no-verbose --import -v %f" - set pgp_export_command="gpg --no-verbose --export --armor %r" - set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r" - set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r" - set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r" + set pgp_decode_command='gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f' + set pgp_verify_command='gpg --no-verbose --batch --output - --verify %s %f' + set pgp_decrypt_command='gpg --passphrase-fd 0 --no-verbose --batch --output - %f' + set pgp_sign_command='gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f' + set pgp_clearsign_command='gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f' + set pgp_encrypt_only_command='/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0xFC29BDCDF15F5BE8 -- -r %r -- %f' + set pgp_encrypt_sign_command='/usr/lib/mutt/pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0xFC29BDCDF15F5BE8 -- -r %r -- %f' + set pgp_import_command='gpg --no-verbose --import -v %f' + set pgp_export_command='gpg --no-verbose --export --armor %r' + set pgp_verify_key_command='gpg --no-verbose --batch --fingerprint --check-sigs %r' + set pgp_list_pubring_command='gpg --no-verbose --batch --with-colons --list-keys %r' + set pgp_list_secring_command='gpg --no-verbose --batch --with-colons --list-secret-keys %r' set pgp_autosign=yes set pgp_sign_as=0xFC29BDCDF15F5BE8 set pgp_replyencrypt=yes set pgp_timeout=1800 - set pgp_good_sign="^gpg: Good signature from" + set pgp_good_sign='^gpg: Good signature from' The above file autosigns all your sent emails (`set pgp_autosign=yes`), but you can obviously turn that off if you would @@ -388,7 +388,7 @@ Folder size in status bar Add the folder size to the status bar by adding `%l` or `%L` to `status_format` in your `~/.muttrc` file. For example - set status_format="-%r-Mutt: %f %L" + set status_format='-%r-Mutt: %f %L' [Mutt]: http://www.mutt.org/ -- 2.26.2