#######
## This goes in the file ~/.mutt/muttrc
#######

## View HTML automatically
auto_view text/html
alternative_order text/plain text/enriched text/html

## Setup my email editor
set editor="emacs -nw --no-init-file --load ~/.emacs-mail +7:0"

## Load bigfatmeaniehead by default
source "~/.mutt/accounts/bigfatmeaniehead"

## Macros to save to folders common across accounts
macro index,pager S '=INBOX.Junk'
macro index,pager A '=INBOX.Archive'

## use macros to change "folder" to another server
macro index  'imaps://bigfatmeaniehead.com/INBOX'
macro index  'imaps://psychlistatx.com/INBOX'
macro index  'imaps://kg5jbe.com/INBOX'
macro index  'imaps://elevenatx.com/INBOX'

## setup hooks for the different "folders"
folder-hook 'bigfatmeaniehead.com' 'source ~/.mutt/accounts/bigfatmeaniehead'
folder-hook 'psychlistatx.com' 'source ~/.mutt/accounts/psychlist'
folder-hook 'kg5jbe.com' 'source ~/.mutt/accounts/kg5jbe'
folder-hook 'elevenatx.com' 'source ~/.mutt/accounts/eleven'

########
## account files are of the following format
########
#########################
## Big Fat Meanie Head ##
#########################

## Set default status bar color to help tell accounts apart
color status cyan default

# Import passwords from encrypted file and direct warnings to /dev/null
source "gpg -d ~/.mutt/accounts/bigfatmeaniehead_pass.gpg 2>/dev/null |"

# IMAP
set imap_user="russell@bigfatmeaniehead.com"
set spoolfile="imaps://echo.nixihost.com/INBOX"
set folder="imaps://echo.nixihost.com:993"
# SMTP
set smtp_url="smtps://$imap_user@echo.nixihost.com:465"
set ssl_starttls=yes
# Folders and stuff
set record="=INBOX.Sent"
set postponed="=INBOX.Drafts"
set from="russell@bigfatmeaniehead.com"
set realname="Russell Stinnett"

########
## password files are of the following format
## encrypt the file with 'gpg -o bigfatmeaniehead_pass.gpg --symmetric bigfatmeaniehead_pass'
## when you start mutt, you will be prompted for the password that you used to encrypt the 
## password file.
########
set imap_pass="thisisapassword"
set smtp_pass="thisisapassword"