Refine mu4e contexts
This commit is contained in:
parent
76af63ad85
commit
3748b2f344
@ -3818,6 +3818,26 @@ Then configure it:
|
|||||||
mu4e-compose-context-policy 'ask
|
mu4e-compose-context-policy 'ask
|
||||||
mu4e-contexts
|
mu4e-contexts
|
||||||
`(,(make-mu4e-context
|
`(,(make-mu4e-context
|
||||||
|
:name "Lola Gmail"
|
||||||
|
:match-func (lambda (msg)
|
||||||
|
(when msg
|
||||||
|
(or
|
||||||
|
(mu4e-message-contact-field-matches msg
|
||||||
|
:to
|
||||||
|
"lola.com")
|
||||||
|
(string-match-p
|
||||||
|
"jeremydormitzer-lola-com"
|
||||||
|
(mu4e-message-field msg :path)))))
|
||||||
|
:vars '((user-mail-address . "jeremydormitzer@lola.com")
|
||||||
|
(mu4e-compose-signature . "Best regards, \nJeremy Dormitzer \nLola.com")
|
||||||
|
(message-signature-insert-empty-line . t)
|
||||||
|
(mu4e-sent-folder . "/jeremydormitzer-lola-com/Sent")
|
||||||
|
(mu4e-drafts-folder . "/jeremydormitzer-lola-com/Drafts")
|
||||||
|
(mu4e-refile-folder . "/jeremydormitzer-lola-com/Archive")
|
||||||
|
(mu4e-trash-folder . "/jeremydormitzer-lola-com/Trash")
|
||||||
|
(message-sendmail-extra-arguments
|
||||||
|
. ("-a" "jeremydormitzer-lola-com"))))
|
||||||
|
,(make-mu4e-context
|
||||||
:name "Personal Gmail"
|
:name "Personal Gmail"
|
||||||
:match-func (lambda (msg)
|
:match-func (lambda (msg)
|
||||||
(when msg
|
(when msg
|
||||||
@ -3830,23 +3850,7 @@ Then configure it:
|
|||||||
(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 "Lola Gmail"
|
|
||||||
:match-func (lambda (msg)
|
|
||||||
(when msg
|
|
||||||
(string-match-p
|
|
||||||
"jeremydormitzer-lola-com"
|
|
||||||
(mu4e-message-field msg :path))))
|
|
||||||
:vars '((user-mail-address . "jeremydormitzer@lola.com")
|
|
||||||
(mu4e-compose-signature . "Best regards, \nJeremy Dormitzer \nLola.com")
|
|
||||||
(message-signature-insert-empty-line . t)
|
|
||||||
(mu4e-sent-folder . "/jeremydormitzer-lola-com/Sent")
|
|
||||||
(mu4e-drafts-folder . "/jeremydormitzer-lola-com/Drafts")
|
|
||||||
(mu4e-refile-folder . "/jeremydormitzer-lola-com/Archive")
|
|
||||||
(mu4e-trash-folder . "/jeremydormitzer-lola-com/Trash")
|
|
||||||
(message-sendmail-extra-arguments
|
|
||||||
. ("-a" "jeremydormitzer-lola-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)
|
||||||
|
Loading…
Reference in New Issue
Block a user