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-trash-folder . "/jeremy-dormitzer-gmail-com/Trash")
(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
(defun mu4e-mark-matching-pred (msg from)
(mu4e-message-contact-field-matches msg :from from))

View File

@ -51,4 +51,55 @@ Channel jeremy-dormitzer-gmail-com-inbox
Channel jeremy-dormitzer-gmail-com-all
Channel jeremy-dormitzer-gmail-com-drafts
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
passwordeval pass show imap.gmail.com | head -n 1
account jeremydormitzer-lola-com
from jeremydormitzer@lola.com
user jeremydormitzer@lola.com
passwordeval pass show jeremydormitzer@lola.com-app-password | 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 default : jeremy-dormitzer-gmail-com