0

Hi I have three gmail adresses, I can choose the contexts but it still shows the inbox of account1. offlineimap is configured with localfolders equals ~/.Mail/[email protected]

Here is part of my config:

(setq mu4e-maildir "~/.Mail")
(setq mu4e-contexts
  `( ,(make-mu4e-context
        :name "account1"
        :enter-func (lambda () (mu4e-message "Entering account1 context"))
        :leave-func (lambda () (mu4e-message "Leaving account1 context"))
        :vars '( ( user-mail-address      . "[email protected]"  )
                 ( user-full-name         . "Peter Pan" )
                 ))

     ,(make-mu4e-context
        :name "account2"
        :enter-func (lambda () (mu4e-message "Entering account2 context"))
        :leave-func (lambda () (mu4e-message "Leaving account2 context"))
        :vars '( ( user-mail-address       . "account2")
                 ( user-full-name          . "Peter Pan" )
                 ))
     ,(make-mu4e-context
        :name "account3"
        :enter-func (lambda () (mu4e-message "Entering account3 context"))
        :leave-func (lambda () (mu4e-message "Leaving account3 context"))
        :vars '( ( user-mail-address       . "account3")
                 ( user-full-name          . "Hanno Jung" )
                 ))
))

What am I doing wrong?

1 Answer 1

1

You are missing :match-func in your contexts, contexts are entered using that function

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.