ctaque · 2022-06-25 20:40
Hi,
At work we use Microsoft exchange for emails. I would like to read/write emails from emacs.
Which package should I use ? I use doom.
Thanks
publicvoit · 2022-06-25 21:29
I'd be curious about your personal web research results on that topic so far.
burtness · 2022-06-26 00:45
My understanding is that it would involve setting up something like [davmail](http://davmail.sourceforge.net/index.html) to fetch mail
mclearc · 2022-06-26 03:20
Yep - Second this. I use mbsync, mu4e, and davmail with no problems.
ctaque · 2022-06-26 07:20
I used to search how to setup this a while ago but did not find a clear, up to date, complete documentation.
ctaque · 2022-06-26 07:50
Why use mbsync ? Davmail does not handle synchronisation itself ?
redguardtoo · 2022-06-26 08:04
https://github.com/redguardtoo/mastering-emacs-in-one-year-guide/blob/master/gnus-guide-en.org#microsoft-outlook
Here are a few tips for DavMail setup.
The Administrator might use non-standard OWA url, you can use EWSEditor to find out the url.
The IMAP setup should set nnimap-stream to plain by default.
JustinSilverman · 2022-06-26 12:33
No davmail is just an interface for exchange protocol. You still need something to actually fetch your mail.
mclearc · 2022-06-26 14:30
- Here's my [mu4e setup](https://github.com/mclear-tools/dotemacs/blob/master/.local/lambda-library/lambda-user/cpm-setup-email.el)
- Here's [a useful tutorial](https://www.chrislockard.net/posts/o365-mail-emacs-mbsync-mu4e/)
- And [another one](https://macowners.club/posts/email-emacs-mu4e-macos/)
- Pragmatic Emacs also has [a ton of links](https://pragmaticemacs.wordpress.com/mu4e-tutorials/)
- A [short davmail tutorial](http://skybert.net/various/read-outlook-365-email-in-your-favourite-email-client/)
- This [reddit thread](https://www.reddit.com/r/emacs/comments/8q84dl/tip_how_to_easily_manage_your_emails_with_mu4e/) is still relevant
With davmail you'll have to set it up with mbsync (or whatever) as local host. But it is really very easy. So something like this:
```
IMAPAccount Exchange
Host localhost
Port 1143
User email@address
PassCmd "security find-generic-password -s mbsync-pass -w"
AuthMechs LOGIN
SSLType NONE
# Increase timeout to avoid o365 IMAP hiccups
Timeout 120
PipelineDepth 50
```
EDIT: added some more links
ctaque · 2022-06-26 15:17
After install of mu, davmail, mbsync, mu4e, I receive emails but stuck on sending emails.
Here is a callstack when I send en email :
gnutls-peer-status(nil)
nsm-verify-connection(nil "localhost" 1025 nil nil)
network-stream-open-starttls("smtpmail" #<buffer *trace of SMTP session to localhost*> "localhost" 1025 (:type starttls :return-list t :warn-unless-encrypted nil :capability-command "EHLO cyprien-yoga\15\n" :end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n" :always-query-capabilities t :starttls-function #f(compiled-function (capabilities) #<bytecode -0x1ca1067b6a254c9d>) :client-certificate t :use-starttls-if-possible t))
open-network-stream("smtpmail" #<buffer *trace of SMTP session to localhost*> "localhost" 1025 :type starttls :return-list t :warn-unless-encrypted nil :capability-command "EHLO cyprien-yoga\15\n" :end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n" :always-query-capabilities t :starttls-function #f(compiled-function (capabilities) #<bytecode -0x1ca1067b6a254c9d>) :client-certificate t :use-starttls-if-possible t)
smtpmail-via-smtp(("cyprien.taque@cine.digital") #<buffer smtpmail temp>)
smtpmail-send-it()
message-multi-smtp-send-mail()
message--send-mail-maybe-partially()
message-send-mail(nil)
message-send-via-mail(nil)
message-send(nil)
message-send-and-exit(nil)
funcall-interactively(message-send-and-exit nil)
call-interactively(message-send-and-exit nil nil)
command-execute(message-send-and-exit)
variables :
send-mail-function: smtp-send-it
smtpmail-smtp-service: 1025
smtpmail-smtp-server: localhost
davmail smtp server runs on port 1025
Am I missing something ?
[deleted] · 2022-06-26 15:22
[deleted]
[deleted] · 2022-07-05 00:04
[removed]