From 83686bd68c4377cf72c713b00807412a2e357477 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 25 Jul 2013 08:32:27 -0400 Subject: Added my mailrc/nailrc --- .mailrc | 11 ++++++ .nailrc | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ .signature-mailx | 3 ++ Makefile | 1 + SUBSTS | 1 + 5 files changed, 122 insertions(+) create mode 100644 .mailrc create mode 100644 .nailrc create mode 100644 .signature-mailx diff --git a/.mailrc b/.mailrc new file mode 100644 index 0000000..226c656 --- /dev/null +++ b/.mailrc @@ -0,0 +1,11 @@ +set NAIL_EXTRA_RC=~/.nailrc +set TMPDIR=~/.mailx/tmp/ +set sendmail=/usr/sbin/sendmail +set from="Ryan Kavanagh " +set append save emptystart + +retain Date From Sender To CC Subject + +# from /etc/mailrc +set ask askcc append dot save crt +ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via Delivered-To diff --git a/.nailrc b/.nailrc new file mode 100644 index 0000000..67d54c0 --- /dev/null +++ b/.nailrc @@ -0,0 +1,106 @@ +define clearset { + unset folder from sendmail record smtp password + unset smime-sign smime-sign-cert smime-sign-nickname +} + +account l { + call clearset + set from="ryan@ryanak.ca (Ryan Kavanagh)" + set sendmail=/usr/sbin/sendmail +} + +account d { + call clearset + set folder=imap://ryan@localhost/ + set sendmail=/home/ryan/bin/msmtp/msmtp-default + set from="Ryan Kavanagh " + set smime-sign-cert-ryan@localhost="/home/ryan/ssl/mailx-debian.pem" + set smime-sign +} + +account g { + call clearset + set folder=imaps://ryanakca@gmail.com@imap.gmail.com/ + set password-ryanakca@gmail.com@imap.gmail.com=GMAIL_mailx_PASS + set sendmail=/home/ryan/bin/msmtp/msmtp-default + set from="Ryan Kavanagh " + set smime-sign-cert="/home/ryan/ssl/mailx-debian.pem" + set smime-sign +} + +account q { + call clearset + set folder=imap://ryan@localhost/QueensU.INBOX + set record=@QueensU.Sent + set MBOX=@QueensU.Read + set sendmail=/home/ryan/bin/msmtp/msmtp-queensu + set from="ryan.kavanagh@queensu.ca (Ryan Kavanagh)" + unset smime-sign +} + +account lm { + call clearset + set folder=imap://ryan@localhost/MIT.INBOX + set record=@MIT.Sent + set MBOX=@MIT.Read + set sendmail=/home/ryan/bin/msmtp/msmtp-mit + set from="rakavan@mit.edu (Ryan Kavanagh)" + set smime-sign-cert-ryan@localhost="/home/ryan/ssl/mailx-mit.pem" + set smime-sign +} + +account m { + call clearset + set from="Ryan Kavanagh " + set folder=imaps://rakavan@imap.exchange.mit.edu:993/ + set imap-starttls-rakavan@imap.exchange.mit.edu:993 + set password-rakavan@imap.exchange.mit.edu:993=MIT_PASS + set ssl-method=tls1 + + set record=@Sent + set MBOX=@Read + + set sendmail="msmtp -a mit" + + set smime-sign-cert=/home/ryan/ssl/mailx-mit.pem + set smime-nickname=rakavan@MIT.EDU + set smime-sign + + set smtp=rakavan@outgoing.mit.edu:587 + set smtp-auth-password-rakavan@outgoing.mit.edu:587=MIT_PASS +} + +source ~/.mailx-aliases.rc +source ~/.mailrc + +# Don't display X-Brightmail-Tracker header cruft +ignore "X-Brightmail-Tracker" + +set ssl-ca-dir=/etc/ssl/certs/ + +set pipe-text/html="w3m -dump -T text/html" +set pipe-application/pgp-signature="gpg --verify" +set cmd="gpg-check | mail-highlight" +set PAGER="less -FXQR" + +set nss-config-dir="~/.mozilla/firefox/dbr0vzdh.default/" + +set imap-cache=/home/ryan/.mailx/cache +set imap-keepalive=60 + +set autosort=thread +unset autocollapse +# Requires me to manually add the leading '-- ' +set signature=~/.signature-mailx +set bsdcompat + +set MBOX=~/mbox + +set quote="headers" + +shortcut mitm imaps://rakavan@imap.exchange.mit.edu:993/ +shortcut lh imap://ryan@localhost/ + +set keep + +set crt=50 diff --git a/.signature-mailx b/.signature-mailx new file mode 100644 index 0000000..5825650 --- /dev/null +++ b/.signature-mailx @@ -0,0 +1,3 @@ +-- +|_)|_/ Ryan Kavanagh | Debian Developer +| \| \ http://ryanak.ca/ | GPG Key 4A11C97A diff --git a/Makefile b/Makefile index 88fae1f..de30130 100755 --- a/Makefile +++ b/Makefile @@ -102,6 +102,7 @@ VARS_.mutt/gpg.rc = GPG_BINARY PGPEWRAP_BINARY VARS_.mutt/score.rc = MUTT_10_SCORE MUTT_20_SCORE VARS_.mutt/ssl.rc = SSL_CERTS VARS_.muttrc = MSMTP_PATH +VARS_.nailrc = GMAIL_mailx_PASS VARS_.netrc = LOCAL_PASS GMAIL_PASS VARS_.offlineimaprc = LOCAL_PASS GMAIL_PASS QUEENSU_PASS MCGSOCS_PASS MCGILL_PASS SSL_CERTS MIT_PASS VARS_.screenrc = ZSH_PATH SCREEN_HOST_COLOUR diff --git a/SUBSTS b/SUBSTS index c803bc2..b16f312 100644 --- a/SUBSTS +++ b/SUBSTS @@ -12,6 +12,7 @@ GPG_DISABLED False EMACS_DISABLED True # Mail passwords GMAIL_PASS secret +GMAIL_mailx_PASS secret QUEENSU_PASS secret MCGSOCS_PASS secret MCGILL_PASS secret -- cgit v1.2.3