Add hummingbird to email config

Update email setup

Update email for hummingbird
This commit is contained in:
Jeremy Isaac Dormitzer 2024-03-20 12:02:01 -04:00
parent 26c1c7d025
commit 7ea370ddec
3 changed files with 50 additions and 49 deletions

View File

@ -1,6 +1,6 @@
;; Email in Emacs via mu4e
(use-package mu4e
:straight (:host github :repo "djcb/mu" :files ("mu4e/*"))
:straight (:local-repo (directory-file-name (file-name-directory (locate-library "mu4e"))) :type built-in)
:if (locate-library "mu4e")
:commands (mu4e mu4e-update-mail-and-index)
:hook (after-init . (lambda () (mu4e t)))
@ -24,7 +24,7 @@
("View in browser" . mu4e-action-view-in-browser))
;; Bookmarked searches
mu4e-bookmarks '((:name "Inbox"
:query "maildir:/jeremy-dormitzer-gmail-com/Inbox OR maildir:/jdormitzer-spotify-com/Inbox"
:query "maildir:/jeremy-dormitzer-gmail-com/Inbox OR maildir:/jeremydormitzer-hummingbird-co/Inbox"
:key ?i)
(:name "Unread messages"
:query "flag:unread AND NOT flag:trashed"
@ -44,7 +44,8 @@
;; Let Gmail handle putting sent messages in the sent folder
mu4e-sent-messages-behavior 'delete
;; Move to trash folder instead of adding trash flag for Gmail mailboxes
mu4e-move-to-trash-patterns '("jeremy-dormitzer-gmail-com")
mu4e-move-to-trash-patterns '("jeremy-dormitzer-gmail-com",
"jeremydormitzer-hummingbird-co")
;; HTML email rendering
shr-use-colors nil
;; Make sure mu4e knows about my different accounts
@ -52,20 +53,20 @@
mu4e-compose-context-policy 'ask
mu4e-contexts
`(,(make-mu4e-context
:name "Spotify Gmail"
:name "Hummingbird Gmail"
:match-func (lambda (msg)
(when msg
(string-match-p
"jdormitzer-spotify-com"
"jeremydormitzer-hummingbird-co"
(mu4e-message-field msg :path))))
:vars '((user-mail-address . "jdormitzer@spotify.com")
:vars '((user-mail-address . "jeremydormitzer@hummingbird.co")
(mu4e-compose-signature . nil)
(mu4e-sent-folder . "/jdormitzer-spotify-com/Sent")
(mu4e-drafts-folder . "/jdormitzer-spotify-com/Drafts")
(mu4e-refile-folder . "/jdormitzer-spotify-com/Archive")
(mu4e-trash-folder . "/jdormitzer-spotify-com/Trash")
(mu4e-sent-folder . "/jeremydormitzer-hummingbird-co/Sent")
(mu4e-drafts-folder . "/jeremydormitzer-hummingbird-co/Drafts")
(mu4e-refile-folder . "/jeremydormitzer-hummingbird-co/Archive")
(mu4e-trash-folder . "/jeremydormitzer-hummingbird-co/Trash")
(message-sendmail-extra-arguments
. ("-a" "jdormitzer-spotify-com"))))
. ("-a" "jeremydormitzer-hummingbird-co"))))
,(make-mu4e-context
:name "Personal Gmail"
:match-func (lambda (msg)

View File

@ -53,53 +53,53 @@ Channel jeremy-dormitzer-gmail-com-drafts
Channel jeremy-dormitzer-gmail-com-sent
Channel jeremy-dormitzer-gmail-com-archive
IMAPAccount jdormitzer-spotify-com
IMAPAccount jeremydormitzer-hummingbird-co
Host imap.gmail.com
User jdormitzer@spotify.com
PassCmd "pass show spotify-google-app-password | head -n 1"
User jeremydormitzer@hummingbird.co
PassCmd "pass show hummingbird-gmail-app-password | head -n 1"
SSLType IMAPS
CertificateFile ~/cert.pem
AuthMechs LOGIN
PipelineDepth 50
IMAPStore jdormitzer-spotify-com-remote
Account jdormitzer-spotify-com
IMAPStore jeremydormitzer-hummingbird-co-remote
Account jeremydormitzer-hummingbird-co
MaxSize 25M
MaildirStore jdormitzer-spotify-com-local
Path ~/.mail/jdormitzer-spotify-com/
Inbox ~/.mail/jdormitzer-spotify-com/Inbox
MaildirStore jeremydormitzer-hummingbird-co-local
Path ~/.mail/jeremydormitzer-hummingbird-co/
Inbox ~/.mail/jeremydormitzer-hummingbird-co/Inbox
SubFolders Verbatim
Channel jdormitzer-spotify-com-inbox
Master :jdormitzer-spotify-com-remote:INBOX
Slave :jdormitzer-spotify-com-local:Inbox
Channel jeremydormitzer-hummingbird-co-inbox
Master :jeremydormitzer-hummingbird-co-remote:INBOX
Slave :jeremydormitzer-hummingbird-co-local:Inbox
Channel jdormitzer-spotify-com-all
Master :jdormitzer-spotify-com-remote:
Slave :jdormitzer-spotify-com-local:
Channel jeremydormitzer-hummingbird-co-all
Master :jeremydormitzer-hummingbird-co-remote:
Slave :jeremydormitzer-hummingbird-co-local:
Patterns * ![Gmail]* !"[Google Mail]*" !INBOX !Inbox !Archive !Trash !Sent !Drafts
Channel jdormitzer-spotify-com-trash
Master :jdormitzer-spotify-com-remote:"[Gmail]/Trash"
Slave :jdormitzer-spotify-com-local:"Trash"
Channel jeremydormitzer-hummingbird-co-trash
Master :jeremydormitzer-hummingbird-co-remote:"[Gmail]/Trash"
Slave :jeremydormitzer-hummingbird-co-local:"Trash"
Channel jdormitzer-spotify-com-sent
Master :jdormitzer-spotify-com-remote:"[Gmail]/Sent Mail"
Slave :jdormitzer-spotify-com-local:"Sent"
Channel jeremydormitzer-hummingbird-co-sent
Master :jeremydormitzer-hummingbird-co-remote:"[Gmail]/Sent Mail"
Slave :jeremydormitzer-hummingbird-co-local:"Sent"
Channel jdormitzer-spotify-com-drafts
Master :jdormitzer-spotify-com-remote:"[Gmail]/Drafts"
Slave :jdormitzer-spotify-com-local:"Drafts"
Channel jeremydormitzer-hummingbird-co-drafts
Master :jeremydormitzer-hummingbird-co-remote:"[Gmail]/Drafts"
Slave :jeremydormitzer-hummingbird-co-local:"Drafts"
Channel jdormitzer-spotify-com-archive
Master :jdormitzer-spotify-com-remote:"[Gmail]/All Mail"
Slave :jdormitzer-spotify-com-local:"Archive"
Channel jeremydormitzer-hummingbird-co-archive
Master :jeremydormitzer-hummingbird-co-remote:"[Gmail]/All Mail"
Slave :jeremydormitzer-hummingbird-co-local:"Archive"
Group jdormitzer-spotify-com
Channel jdormitzer-spotify-com-trash
Channel jdormitzer-spotify-com-inbox
Channel jdormitzer-spotify-com-all
Channel jdormitzer-spotify-com-drafts
Channel jdormitzer-spotify-com-sent
Channel jdormitzer-spotify-com-archive
Group jeremydormitzer-hummingbird-co
Channel jeremydormitzer-hummingbird-co-trash
Channel jeremydormitzer-hummingbird-co-inbox
Channel jeremydormitzer-hummingbird-co-all
Channel jeremydormitzer-hummingbird-co-drafts
Channel jeremydormitzer-hummingbird-co-sent
Channel jeremydormitzer-hummingbird-co-archive

View File

@ -11,9 +11,9 @@ from jeremy.dormitzer@gmail.com
user jeremy.dormitzer@gmail.com
passwordeval pass show imap.gmail.com | head -n 1
account jdormitzer-spotify-com
from jdormitzer@spotify.com
user jdormitzer@spotify.com
passwordeval pass show spotify-google-app-password | head -n 1
account jeremydormitzer-hummingbird-co
from jeremydormitzer@hummingbird.co
user jeremydormitzer@hummingbird.co
passwordeval pass show hummingbird-gmail-app-password | head -n 1
account default : jeremy-dormitzer-gmail-com