Add spotify email to mu4e/mbsync/msmtp setup

This commit is contained in:
Jeremy Dormitzer 2022-04-02 11:35:40 -04:00
parent d6db37a85d
commit 1f12c85912
3 changed files with 72 additions and 6 deletions

View File

@ -67,7 +67,22 @@
(mu4e-refile-folder . "/jeremy-dormitzer-gmail-com/Archive") (mu4e-refile-folder . "/jeremy-dormitzer-gmail-com/Archive")
(mu4e-trash-folder . "/jeremy-dormitzer-gmail-com/Trash") (mu4e-trash-folder . "/jeremy-dormitzer-gmail-com/Trash")
(message-sendmail-extra-arguments (message-sendmail-extra-arguments
. ("-a" "jeremy-dormitzer-gmail-com")))))) . ("-a" "jeremy-dormitzer-gmail-com"))))
,(make-mu4e-context
:name "Spotify Gmail"
:match-func (lambda (msg)
(when msg
(string-match-p
"jdormitzer-spotify-com"
(mu4e-message-field msg :path))))
:vars '((user-mail-address . "jdormitzer@spotify.com")
(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")
(message-sendmail-extra-arguments
. ("-a" "jdormitzer-spotify-com"))))))
;; Custom mark function to mark messages matching the current message ;; Custom mark function to mark messages matching the current message
(defun mu4e-mark-matching-pred (msg from) (defun mu4e-mark-matching-pred (msg from)
(mu4e-message-contact-field-matches msg :from from)) (mu4e-message-contact-field-matches msg :from from))

View File

@ -52,3 +52,54 @@ Channel jeremy-dormitzer-gmail-com-all
Channel jeremy-dormitzer-gmail-com-drafts Channel jeremy-dormitzer-gmail-com-drafts
Channel jeremy-dormitzer-gmail-com-sent Channel jeremy-dormitzer-gmail-com-sent
Channel jeremy-dormitzer-gmail-com-archive Channel jeremy-dormitzer-gmail-com-archive
IMAPAccount jdormitzer-spotify-com
Host imap.gmail.com
User jdormitzer@spotify.com
PassCmd "pass show spotify-google-app-password | head -n 1"
SSLType IMAPS
CertificateFile ~/cert.pem
AuthMechs LOGIN
PipelineDepth 50
IMAPStore jdormitzer-spotify-com-remote
Account jdormitzer-spotify-com
MaxSize 25M
MaildirStore jdormitzer-spotify-com-local
Path ~/.mail/jdormitzer-spotify-com/
Inbox ~/.mail/jdormitzer-spotify-com/Inbox
SubFolders Verbatim
Channel jdormitzer-spotify-com-inbox
Master :jdormitzer-spotify-com-remote:INBOX
Slave :jdormitzer-spotify-com-local:Inbox
Channel jdormitzer-spotify-com-all
Master :jdormitzer-spotify-com-remote:
Slave :jdormitzer-spotify-com-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 jdormitzer-spotify-com-sent
Master :jdormitzer-spotify-com-remote:"[Gmail]/Sent Mail"
Slave :jdormitzer-spotify-com-local:"Sent"
Channel jdormitzer-spotify-com-drafts
Master :jdormitzer-spotify-com-remote:"[Gmail]/Drafts"
Slave :jdormitzer-spotify-com-local:"Drafts"
Channel jdormitzer-spotify-com-archive
Master :jdormitzer-spotify-com-remote:"[Gmail]/All Mail"
Slave :jdormitzer-spotify-com-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

View File

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