summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--emacs/.emacs.d/main.el28
-rw-r--r--isync/.mbsyncrc37
-rw-r--r--msmtp/.msmtprc17
3 files changed, 82 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 1c8e78a..686cc6f 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -639,6 +639,34 @@ With two prefix arguments, write out the day and month name."
                       prettier-js-args '("--pkg-conf"))
               (message "prettier_d is not available"))))
 
+;;; E-mail
+
+(use-package mu4e
+  :init (setq mail-user-agent #'mu4e-user-agent)
+  :custom ((mu4e-completing-read-function #'ivy-completing-read)
+           (mu4e-maildir "~/mail")
+           (mu4e-compose-format-flowed t))
+  :config (progn
+            (with-eval-after-load 'evil-ex
+              (evil-ex-define-cmd "mu[4e]" #'mu4e))
+            (setq mu4e-contexts (list
+                                 (make-mu4e-context
+                                  :name "SatoshiPay"
+                                  :match-func (lambda (msg)
+                                                (when msg
+                                                  (mu4e-message-contact-field-matches
+                                                   msg :to "alan@satoshipay.io")))
+                                  :vars '((user-mail-address . "alan@satoshipay.io")
+                                          (mu4e-sent-messages-behavior . 'delete)
+                                          (mu4e-drafts-folder . "/satoshipay/Drafts")
+                                          (mu4e-sent-folder . "/satoshipay/Sent Mail")
+                                          (mu4e-refile-folder . "/satoshipay/All Mail")
+                                          (mu4e-trash-folder . "/satoshipay/Bin")
+                                          (mu4e-maildir-shortcuts . (("/satoshipay/INBOX" . ?i)
+                                                                     ("/satoshipay/All Mail" . ?a)
+                                                                     ("/satoshipay/Sent Mail" . ?s)
+                                                                     ("/satoshipay/Spam" . ?p)))))))))
+
 ;;; Take me to my leader
 
 (my-leader-def
diff --git a/isync/.mbsyncrc b/isync/.mbsyncrc
new file mode 100644
index 0000000..396bc6a
--- /dev/null
+++ b/isync/.mbsyncrc
@@ -0,0 +1,37 @@
+# Globals
+Create Both
+Remove Both
+Expunge Both
+CopyArrivalDate yes
+FSync no
+
+## Satoshipay
+# Account
+IMAPAccount satoshipay.io
+Host imap.gmail.com
+User alan@satoshipay.io
+PassCmd "keyring get satoshipay-google-mail alan@satoshipay.io"
+SSLType IMAPS
+SSLVersions TLSv1.2 TLSv1.1
+
+# Remote
+IMAPStore satoshipay.io-remote
+Account satoshipay.io
+
+# Local
+MaildirStore satoshipay.io-local
+Path ~/mail/satoshipay/
+Inbox ~/mail/satoshipay/INBOX
+SubFolders Verbatim
+
+# Job
+Channel satoshipay
+Master :satoshipay.io-remote:
+Slave :satoshipay.io-local:
+Patterns INBOX
+SyncState *
+
+Channel satoshipay-gmail
+Master :satoshipay.io-remote:[Gmail]/
+Slave :satoshipay.io-local:
+Patterns * !INBOX
\ No newline at end of file
diff --git a/msmtp/.msmtprc b/msmtp/.msmtprc
new file mode 100644
index 0000000..da5c5da
--- /dev/null
+++ b/msmtp/.msmtprc
@@ -0,0 +1,17 @@
+# Set default values for all following accounts.
+defaults
+auth           on
+tls            on
+tls_trust_file /etc/ssl/certs/ca-certificates.crt
+logfile        ~/.local/log/msmtp.log
+
+account        satoshipay
+host           smtp.gmail.com
+from           alan@satoshipay.io
+user           alan@satoshipay.io
+port           465
+tls_starttls   off
+passwordeval   keyring get satoshipay-google-mail alan@satoshipay.io
+
+# Set a default account
+account default : satoshipay