# Append this to .bash_profile to enable pgpsendmail encryption (assuming you
# have already installed pgp of course)

export PGPPATH=~/.pgp

# To enable automatic decryption of incoming mail, choose where the
# decrypted mail will be put; here I am assuming ~/Mail/inbox, which is a
# suitable place for 'elm' users. Create a file ~/.pgp/PGPdaemon.config
# like this (but without the hashes) - USERID identifies the key you wish
# to use for decrypting mail:

#USERID B.Candler@pobox.com
#MAILWAIT
#IN_SPOOL_DIR /var/spool/mail
#OUT_SPOOL_FILE ~/Mail/inbox

# then include the following in .bash_profile. This tells mail readers
# where to find the decrypted mailbox, and starts pgpdaemon and prompts for
# your passphrase, if pgpdaemon is not already running.

export MAIL=~/Mail/inbox
export MAILCHECK=15
if [ ! -f $PGPPATH/.pgpd.PID.* ]; then
  pgpdaemon &
  sleep 1
  sendpgppass
fi
