aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-09-18 15:31:22 +0200
committerOscar Najera <hi@oscarnajera.com>2023-09-18 15:31:22 +0200
commita3e317db5b03a9aaed8b70e0ba8e27c958cf2be4 (patch)
treec77e0a75c6a57dd24560addd84cf8b0630226ebf
parent729db4356623b88623e59d647a3267183949692c (diff)
downloaddotfiles-a3e317db5b03a9aaed8b70e0ba8e27c958cf2be4.tar.gz
dotfiles-a3e317db5b03a9aaed8b70e0ba8e27c958cf2be4.tar.bz2
dotfiles-a3e317db5b03a9aaed8b70e0ba8e27c958cf2be4.zip
new email
-rwxr-xr-xinstall.scm12
-rw-r--r--mail/dot-mbsyncrc.byteplant81
2 files changed, 91 insertions, 2 deletions
diff --git a/install.scm b/install.scm
index d15c804..4569bb6 100755
--- a/install.scm
+++ b/install.scm
@@ -174,15 +174,23 @@
(define (mail-config)
(log-msg 'INFO "Configuring mail")
(log-msg 'INFO " Symlink mbsync")
- (config-links "mail/dot-mbsyncrc.personal" "~/.mbsyncrc" #f)
+ (config-links
+ (if (string=? (gethostname) "obp")
+ "mail/dot-mbsyncrc.byteplant"
+ "mail/dot-mbsyncrc.personal")
+ "~/.mbsyncrc" #f)
(let* ((notmuch-config-file (expand-file "~/.notmuch-config"))
(emails
(list
"hi@oscarnajera.com"
"hello@oscarnajera.com"
"najera.oscar@gmail.com"
+ "oscar@byteplant.com"
))
- (user-mail "hi@oscarnajera.com")
+ (user-mail
+ (if (string=? (gethostname) "obp")
+ "oscar@byteplant.com"
+ "hi@oscarnajera.com"))
;; setting up notmuch config
(config
`((database (path ,(expand-file "~/.mail")))
diff --git a/mail/dot-mbsyncrc.byteplant b/mail/dot-mbsyncrc.byteplant
new file mode 100644
index 0000000..e8b361f
--- /dev/null
+++ b/mail/dot-mbsyncrc.byteplant
@@ -0,0 +1,81 @@
+###############################################################################
+# byteplant
+IMAPAccount oscar
+Host imap.byteplant.com
+User oscar@byteplant.com
+PassCmd "pass show byteplant.com/imap"
+AuthMechs LOGIN
+SSLType IMAPS
+CertificateFile /etc/ssl/certs/ca-certificates.crt
+
+IMAPStore oscar-remote
+Account oscar
+
+MaildirStore oscar-local
+Path ~/.mail/oscar/
+Inbox ~/.mail/oscar/Inbox
+SubFolders Verbatim
+
+Channel oscar
+Far :oscar-remote:
+Near :oscar-local:
+Patterns *
+Create Both
+SyncState *
+Expunge Both
+
+###############################################################################
+# byteplant
+IMAPAccount admin
+Host imap.byteplant.com
+User admin@byteplant.com
+PassCmd "pass show byteplant.com/admin-email"
+AuthMechs LOGIN
+SSLType IMAPS
+CertificateFile /etc/ssl/certs/ca-certificates.crt
+
+IMAPStore admin-remote
+Account admin
+
+MaildirStore admin-local
+Path ~/.mail/admin/
+Inbox ~/.mail/admin/Inbox
+SubFolders Verbatim
+
+Channel admin
+Far :admin-remote:
+Near :admin-local:
+Patterns *
+Create Both
+SyncState *
+Expunge Both
+
+###############################################################################
+# byteplant
+IMAPAccount support
+Host imap.byteplant.com
+User support@byteplant.com
+PassCmd "pass show byteplant.com/support-email"
+AuthMechs LOGIN
+SSLType IMAPS
+CertificateFile /etc/ssl/certs/ca-certificates.crt
+
+IMAPStore support-remote
+Account support
+
+MaildirStore support-local
+Path ~/.mail/support/
+Inbox ~/.mail/support/Inbox
+SubFolders Verbatim
+
+Channel support
+Far :support-remote:
+Near :support-local:
+Patterns *
+Create Both
+SyncState *
+Expunge Both
+
+# Local Variables:
+# mode: conf-unix
+# End: