# MH does this.  This is good.
set autoedit=yes
set edit_headers=yes

set from="aredridel@nbtsc.org"

# Mmhm.  UTF.  Candy.
set charset="UTF8"
set send_charset="US-ASCII:ISO-8859-1:ISO-8859-2:UTF8"

# General Schtuff
set editor=vim
set nohelp
set quit=yes
set read_inc=5
set write_inc=5
set reply_to=yes
set reverse_alias
set record="=INBOX.Sent"
set save_name	# Save copies by name.
set nobeep
set tmpdir=~/.tmp
set index_format="%4C %Z %{%b %d} %-15.15L %3N (%4l) %s"
set sort=threads
set sort_aux=date-received
set wait_key=yes
#set implicit_autoview

# Even better: Plain text emails!
auto_view text/html
alternative_order application/pgp text/plain text/html text/enriched

# Message Display
ignore 		*
unignore	from to cc bcc subject resent-by date authenticated-sender
unignore	apparently-from x-address x-organisation reply-to
unignore	x-spammer x-url delivered-to

hdr_order	From From: Resent-By: Reply-To: X-Organisation: \
		X-Address: To: Cc: Bcc: \
		Date: Subject:

# So I'm used to pine....
bind index x sync-mailbox
bind index ~ imap-fetch-mail
bind index <Down> next-entry
bind index <Up> previous-entry

# Purge without asking.  I'm a careful human.
set delete=yes
unset confirmappend

# Local MTA settings
set spoolfile="~/Maildir/"
set folder="~/Maildir/"
set move=no
set mbox_type="Maildir"
set hostname="mail.nbtsc.org"
#unset use_domain

# Message Composition
set followup_to
set realname="Aredridel"
set include=yes
set signature=~/.signature
set sig_dashes
set	abort_nosubject=no
my_hdr X-Arbitrary-Number-Of-The-Day: 42

# PGP Options
set pgp_replyencrypt			# Encrypt when replying to encrypted messages.
set pgp_replysignencrypted
set pgp_replysign
set	pgp_autosign				# autosign all outgoing mails
set pgp_show_unusable="no"		# Don't display unusable keys.
set pgp_sort_keys="address"		# Sort keys by key ID
set pgp_timeout=3600			# Forget the PGP passphrase after an hour.
#set	pgp_sort_keys=trust			# sort order
#set	pgp_sign_as=0x2964BF46			# primary keyid
set pipe_decode			# Decode messages I pipe to commands, typically to patch(1).

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"
	# create a pgp/mime encrypted attachment
set	pgp_encrypt_only_command=\
	"pgpewrap gpg -v --batch --output - --encrypt --textmode \
	--armor --always-trust -- -r %r -- %f"
	# create a pgp/mime encrypted and signed attachment
set	pgp_encrypt_sign_command=\
	"pgpewrap gpg --passphrase-fd 0 -v --batch --output - --encrypt \
	--sign %?a?-u %a? --armor --always-trust -- -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_getkeys_command=""

# Pager setup
#set pager="/usr/bin/w3m"
set prompt_after=no
unset pager_format
set pager_stop=yes

# EXIM Workaround
set write_bcc=no

# Color
color	hdrdefault	green black
color	quoted		yellow black
color	signature	red black
color	indicator	white blue
color	attachment	magenta black
color	error		red black
color	status		white blue
color	tree		yellow black
color	normal		white black
color	body		cyan black	(http|ftp)://[_a-zA-Z0-9\./~\-]+
# gnupg coloring (source: kris kennaway <kris@obsecurity.org>)
color	body	green black		"^gpg: Good signature from"
color	body	brightred black		"^gpg: Bad signature from"
color	body	brightred black		"^gpg: BAD signature from"
color	body	brightred black		"^gpg: Note: This key has expired!"
color	body	brightyellow black	"^gpg: WARNING: This key is not certified with a trusted signature!"
color	body	brightyellow black	"^gpg:          There is no indication that the signature belongs to the owner."
color	body	brightyellow black	"^gpg: can't handle these multiple signatures"
color	body	brightyellow black	"^gpg: signature verification suppressed"
color	body	brightyellow black	"^gpg: invalid node with packet of type"
# index coloring based on score
#color	index	white black
color	index	red black		'~n -9'
color	index	green black		'~n 10-19'
color	index	brightcyan black		'~n 20-29'
color	index	brightyellow black	'~n 30-'
color	index	white black '~f majordomo@nbtsc.org'
#color	index	brightyellow black	'~p'

color index	brightwhite black	'~t tgts-youth@groups.queernet.org|~c tgts-youth@groups.queernet.org'

# Scoring
# 0: definate spam; 1-9: probable spam; 10-19: bulk mail; 
# 20-30: personal mail; >30: Definate interest
score "~A" 10
score "~t aredridel@nbtsc.org" 4
score "~t arianna@nbtsc.org" 7
score "~f .*@independence.net" 2
score "~f .*@ouraynet.com" 2
score "~f isaiahbenjamin@mindspring.com" 1
score "~f carrie@nbtsc.org" 5
score "~f ehw7@aol.com" 7
score "~f mari@nbtsc.org" 5
score "~f .*@nbtsc.org" 2

set score_threshold_delete=0
alias leanonme-l Lean On Me <leanonme_thecomic@yahoogroups.com>
alias anja Anja Kessler <gypsyspirit@fastmail.fm>
alias tgts-youth-l TGTS Youth List <tgts-youth@groups.queernet.org>