mkogg.py: Fix 'self.get_mp4_metadata(self, source)'
[blog.git] / posts / Mutt.mdwn
index c9ba4bb79a904eb90d47a639e980832b7123b88f..8750a1e6143f7c3d1d3ee08cc06a16e23a449310 100644 (file)
@@ -15,6 +15,17 @@ and msmpt with
 
   $ apt-get install mutt msmtp
 
+Local account
+=============
+
+Mutt is a very flexible beast, and in the past I've used some of the
+more complicated setups described below.  However, I eventually broke
+down and got a domain name, after which it made more sense to setup a
+local [[Postfix]] server, and have Mutt interact with this local
+server.  I'll keep the IMAP/POP examples below because they might be
+useful for those of you that don't want to run your own mail server
+;).
+
 Single IMAP account
 ===================
 
@@ -25,11 +36,11 @@ Drexel email system, I looked up the server addresses, and created the
     # login information
     set imap_user='<your-username>@drexel.edu'
     set imap_pass='<your-password>'
-    set from="<your-username>@drexel.edu"
+    set from='<your-username>@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="<your-realname>"
+    set realname='<your-realname>'
 
     # email server location
     set spoolfile=imaps://<your-username>@imap.mail.drexel.edu:993/INBOX
@@ -45,7 +56,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 +176,8 @@ Configure mutt with
 
     # switch FROM field so msmtp changes sending account
     # http://home.nyc.rr.com/computertaijutsu/mutt.html
-    macro generic "<esc>1" ":set from='<drexel-from-address>@drexel.edu'"
-    macro generic "<esc>2" ":set from='<gmail-username>@gmail.com'"
+    macro generic '<esc>1' ":set from='<drexel-from-address>@drexel.edu'"
+    macro generic '<esc>2' ":set from='<gmail-username>@gmail.com'"
     # no send2-hook in version 1.4.2.2i
     send-hook '~f <drexel-from-address>@drexel.edu' 'set sendmail="/usr/local/bin/msmtp "'
     send-hook '~f <gmail-username>@gmail.com' 'set sendmail="/usr/local/bin/msmtp -a gmail"'
@@ -197,14 +208,14 @@ The specific configuration files are:
 The common configuration (these are all optional):
 
     #~/.mutt/common
-    set realname="<your-realname>"
+    set realname='<your-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 +237,7 @@ The Drexel setup:
     # see ~/.msmtp for configuration
     set sendmail=/usr/local/bin/msmtp
 
-    set from="<drexel-from-address>@drexel.edu"
+    set from='<drexel-from-address>@drexel.edu'
 
 The Gmail setup:
 
@@ -243,9 +254,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-username>@gmail.com"
+    set from='<gmail-username>@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 +295,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-username>@gmail.com"
+    set from='<gmail-username>@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 +351,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 +399,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/