[emacs-berlin] Mu4e/mbsync configuration
Rose, Leonhard Alexis
l.rose at campus.tu-berlin.de
Fri Oct 26 14:32:51 UTC 2018
Hello everyone,
new here and just wanted to ask if someone is able to help me with a few problems with mu4e and mbsync.
Best would probably if someone could help me at the monthly meetup.
I have the following setup: two email accounts, one private gmail Account, one exchange account from my university (same address I'm writing from).
For each I have a mu4e context (and an entry for smtpmail-multi.el).
Now, the most basic stuff works. All Mail is downloaded into the correct folders, I can look at it and write/send mail.
But there it stops. For example, I cant move message to other folders. Deleting only works with the gmail account. Also, mu4e-sent-message-behaviour is set to 'sent' for the exchange account, which actually works.
Also, when Composing, always the gmail address is selected.
I'm using Emacs 26.1.
I'd be so happy if someone could help me !
relevant parts of my emacs config:
(use-package mu4e
:custom
(mail-user-agent 'mu4e-user-agent)
(mu4e-maildir "~/.mail")
(mu4e-get-mail-command "mbsync -aV")
(mu4e-update-intervall 300)
(mu4e-compose-context-policy 'ask-if-none)
:bind ("C-x C-m" . 'mu4e))
(with-eval-after-load 'mu4e-alert
(mu4e-alert-set-default-style 'notifications))
(setq mu4e-headers-fields '( (:human-date . 12)
(:flags . 6)
(:mailing-list . 10)
(:from . 22)
(:to . 22)
(:subject . nil)))
(setq mu4e-contexts
`( ,(make-mu4e-context
:name "gmail-private"
:enter-func (lambda () (mu4e-message "Entering gmail-private context"))
:match-func (lambda (msg)
(when msg
(mu4e-message-contact-field-matches msg
:to ".*kolonigulus at gmail\.com")))
:vars '((user-mail-address . "kolonigulus at gmail.com" )
(user-full-name . "Leonhard Rose")
(mu4e-maildir-shortcuts . (("/gmail/inbox" . ?i)
("/gmail/sent" . ?s)
("/gmail/trash" . ?t)
("/gmail/archive" . ?a)))
(mu4e-sent-folder . "/gmail/sent")
(mu4e-trash-folder . "/gmail/trash")
(mu4e-refile-folder . "/gmail/archive")
(mu4e-sent-messages-behavior . delete)))
,(make-mu4e-context
:name "TU Berlin"
:enter-func (lambda () (mu4e-message "Entering TU-Berlin context"))
:match-func (lambda (msg)
(when msg
(mu4e-message-contact-field-matches msg
:to "l\.rose at campus\.tu-berlin\.de")))
:vars '((user-mail-adress . "l.rose at campus.tu-berlin.de")
(user-full-name . "Leonhard Rose")
(mu4e-maildir-shortcuts . (("/tub/inbox" . ?i)
("/tub/sent" . ?s)
("/tub/trash" . ?t)
("/tub/archive" . ?a)))
(mu4e-sent-folder . "/tub/sent")
(mu4e-trash-folder . "/tub/trash")
(mu4e-refile-folder . "/tub/archive")
(mu4e-sent-messages-behavior . sent)))))
(setq mu4e-user-mail-address-list '("kolonigulus at gmail.com" "l.rose at campus.tu-berlin.de"))
(load-file "~/.emacs.d/smtpmail-multi.el")
(setq smtpmail-multi-accounts
(quote
((gmail . ("kolonigulus at gmail.com"
"smtp.gmail.com"
587
"kolonigulus at gmail.com"
nil nil nil))
(tub . ("username at win.tu-berlin.de"
"exchange.tu-berlin.de"
587
"l.rose at campus.tu-berlin.de"
nil nil nil)))))
(setq smtpmail-multi-associations
(quote
(("kolonigulus at gmail.com" gmail)
("l.rose at campus.tu-berlin.de" tub))))
(setq smtpmail-multi-default-account (quote gmail))
(setq message-send-mail-function 'smtpmail-multi-send-it)
(require 'smtpmail)
My .mbsyncrc:
IMAPAccount gmail
# Address to connect to
Host imap.gmail.com
User kolonigulus at gmail.com
Pass Password
AuthMechs LOGIN
SSLType IMAPS
SSLVersions TLSv1.2
IMAPStore gmail-remote
Account gmail
MaildirStore gmail-local
Path ~/.mail/gmail
Inbox ~/.mail/gmail/inbox
SubFolders Verbatim
Channel gmail-inbox
Master :gmail-remote:
Slave :gmail-local:
Patterns "INBOX"
Create Both
SyncState *
Channel gmail-trash
Master :gmail-remote:"[Gmail]/Papierkorb"
Slave :gmail-local:"/trash"
Create Both
SyncState *
Channel gmail-sent
Master :gmail-remote:"[Gmail]/Gesendet"
Slave :gmail-local:"/sent"
Create Both
SyncState *
Channel gmail-archive
Master :gmail-remote:"Archiviert"
Slave :gmail-local:"/archive"
Create Both
SyncState *
Channel gmail-starred
Master :gmail-remote:"[Gmail]/Markiert"
Slave :gmail-local:"/starred"
Create Both
SyncState *
Channel gmail-starred
Master :gmail-remote:"[Gmail]/Entw&APw-rfe"
Slave :gmail-local:"/drafts"
Create Both
SyncState *
Group gmail
Channel gmail-inbox
Channel gmail-sent
Channel gmail-trash
Channel gmail-starred
Channel gmail-archive
IMAPaccount tub
Host exchange.tu-berlin.de
User username
Pass Password
SSLType IMAPS
IMAPStore tub-remote
Account tub
Maildirstore tub-local
Path /home/leonhard/.mail/tub/
Inbox /home/leonhard/.mail/tub/inbox/
Subfolders Verbatim
Channel tub-inbox
Master :tub-remote:"INBOX"
Slave :tub-local:"/inbox"
Create Both
Syncstate *
Channel tub-trash
Master :tub-remote:"Gel&APY-schte Elemente"
Slave :tub-local:"/trash"
Create Both
Syncstate *
Channel tub-sent
Master :tub-remote:"Gesendete Elemente"
Slave :tub-local:"/sent"
Create Both
Syncstate *
Channel tub-drafts
Master :tub-remote:"Entw&APw-rfe"
Slave :tub-local:"/drafts"
Create Both
Syncstate *
Channel tub-archive
Master :tub-remote:"archive"
Slave :tub-local:"/archive"
Create Both
Syncstate *
Group tub
Channel tub-inbox
Channel tub-trash
Channel tub-sent
Channel tub-drafts
Channel tub-archive
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailb.org/pipermail/emacs-berlin/attachments/20181026/573c3247/attachment.html>
More information about the emacs-berlin
mailing list