summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.mutt/accounts/jmccroha@tcd.ie/muttrc9
-rw-r--r--.mutt/accounts/jmccrohan@gmail.com/muttrc9
-rw-r--r--.mutt/accounts/jonathan@mccrohan.ie/muttrc9
-rw-r--r--.mutt/muttrc59
4 files changed, 86 insertions, 0 deletions
diff --git a/.mutt/accounts/jmccroha@tcd.ie/muttrc b/.mutt/accounts/jmccroha@tcd.ie/muttrc
new file mode 100644
index 0000000..ed7213f
--- /dev/null
+++ b/.mutt/accounts/jmccroha@tcd.ie/muttrc
@@ -0,0 +1,9 @@
+set from = "jmccroha@tcd.ie"
+set imap_user = "jmccroha@tcd.ie"
+set smtp_url = "smtp://jmccroha@tcd.ie@smtp.gmail.com:587/"
+
+source "gpg -d ~/.mutt/accounts/jmccroha@tcd.ie/passwords.gpg |" # decrypt passwords
+
+set header_cache =~/.mutt/accounts/jmccroha@tcd.ie/cache/headers
+set message_cachedir =~/.mutt/accounts/jmccroha@tcd.ie/cache/bodies
+set certificate_file =~/.mutt/accounts/jmccroha@tcd.ie/certificates
diff --git a/.mutt/accounts/jmccrohan@gmail.com/muttrc b/.mutt/accounts/jmccrohan@gmail.com/muttrc
new file mode 100644
index 0000000..f30f1ca
--- /dev/null
+++ b/.mutt/accounts/jmccrohan@gmail.com/muttrc
@@ -0,0 +1,9 @@
+set from = "jmccrohan@gmail.com"
+set imap_user = "jmccrohan@gmail.com"
+set smtp_url = "smtp://jmccrohan@smtp.gmail.com:587/"
+
+source "gpg -d ~/.mutt/accounts/jmccrohan@gmail.com/passwords.gpg |" # decrypt passwords
+
+set header_cache =~/.mutt/accounts/jmccrohan@gmail.com/cache/headers
+set message_cachedir =~/.mutt/accounts/jmccrohan@gmail.com/cache/bodies
+set certificate_file =~/.mutt/accounts/jmccrohan@gmail.com/certificates
diff --git a/.mutt/accounts/jonathan@mccrohan.ie/muttrc b/.mutt/accounts/jonathan@mccrohan.ie/muttrc
new file mode 100644
index 0000000..57685ac
--- /dev/null
+++ b/.mutt/accounts/jonathan@mccrohan.ie/muttrc
@@ -0,0 +1,9 @@
+set from = "jonathan@mccrohan.ie"
+set imap_user = "jonathan@mccrohan.ie"
+set smtp_url = "smtp://jonathan@mccrohan.ie@smtp.gmail.com:587/"
+
+source "gpg -d ~/.mutt/accounts/jonathan@mccrohan.ie/passwords.gpg |" # decrypt passwords
+
+set header_cache =~/.mutt/accounts/jonathan@mccrohan.ie/cache/headers
+set message_cachedir =~/.mutt/accounts/jonathan@mccrohan.ie/cache/bodies
+set certificate_file =~/.mutt/accounts/jonathan@mccrohan.ie/certificates
diff --git a/.mutt/muttrc b/.mutt/muttrc
new file mode 100644
index 0000000..834dd8c
--- /dev/null
+++ b/.mutt/muttrc
@@ -0,0 +1,59 @@
+# three mail accounts; use folder hooks to switch between them
+folder-hook 'jmccrohan@gmail.com' source ~/.mutt/accounts/jmccrohan@mail.com/muttrc
+folder-hook 'jmccroha@tcd.ie' source ~/.mutt/accounts/jmccroha@tcd.ie/muttrc
+folder-hook 'jonathan@mccrohan.ie' source ~/.mutt/accounts/jonathan@mccrohan.ie/muttrc
+macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/accounts/jmccrohan@gmail.com/muttrc<enter><change-folder>!<enter>'
+macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/accounts/jmccroha@tcd.ie/muttrc<enter><change-folder>!<enter>'
+macro index <f4> '<sync-mailbox><enter-command>source ~/.mutt/accounts/jonathan@mccrohan.ie/muttrc<enter><change-folder>!<enter>'
+
+# switch to default account on startup
+source ~/.mutt/accounts/jmccrohan@gmail.com/muttrc
+
+# common settings
+set sort = threads
+set sort_aux = reverse-last-date-received
+alternative_order text/enriched text/plain text/html
+auto_view text/html
+set move = no # leave messages where they are
+set recall = no # don't ask about drafts when composing
+bind editor <space> noop
+
+# mutt-patched sidebar
+set sidebar_visible sidebar_width=25
+bind index,pager \CP sidebar-prev
+bind index,pager \CN sidebar-next
+bind index,pager \CO sidebar-open
+macro index \Cb '<enter-command>toggle sidebar_visible<enter><refresh>'
+macro pager \Cb '<enter-command>toggle sidebar_visible<enter><redraw-screen>'
+
+# common mailbox settings
+set realname = "Jonathan McCrohan"
+set folder = "imaps://imap.gmail.com:993"
+set spoolfile = "+INBOX"
+set postpone = yes # save drafts
+set postponed ="+[Google Mail]/Drafts"
+set trash = "imaps://imap.gmail.com/[Google Mail]/All Mail" # archive rather than delete
+set imap_idle
+
+unset imap_passive
+unset imap_peek
+set imap_keepalive = 900
+set mail_check=90
+
+mailboxes =INBOX
+mailboxes ="[Google Mail]/Starred"
+mailboxes ="[Google Mail]/Sent Mail"
+mailboxes ="[Google Mail]/Drafts"
+mailboxes ="[Google Mail]/All Mail"
+mailboxes ="[Google Mail]/Spam"
+mailboxes ="[Google Mail]/Bin" # Bin if en-uk, Trash if en-us
+
+# crypto (gpgme) settings
+set crypt_use_gpgme
+set pgp_autosign=yes
+set pgp_sign_as=0x37AD3296
+set pgp_replyencrypt=yes
+set pgp_good_sign="^gpg: Good signature from"
+set pgp_verify_sig=yes
+set pgp_auto_decode=yes
+set pgp_use_gpg_agent = yes