Re: Getting email from MS outlook into emacs

2023-12-07 Thread Leo Butler
On Thu, Nov 30 2023, "Fraga, Eric"  wrote:

> 
> Caution: This message was sent from outside the University of Manitoba.
> 
>
> On Wednesday, 29 Nov 2023 at 14:08, Presnell,Brett Douglas wrote:
>> I had to deal with this last spring.  I finally got things working again
>> with mbsync, msmtp, mu/mu4e, and for the oauth stuff, pizauth.  This
>> combination has worked well for me ever since.  Most of the details can
>> be found at
>
> Thank you for this.  Very useful.  I have davmail working for me for
> authentication so I'm going to stick to what's working.  However, it's
> nice to know that there is another route possible should davmail stop
> working.  But sad that we have to through these contortions just to
> access our email.

Aargh. Thanks for you post and webpage, Brett. It set me off to try to
get oath2.el working with gnus (failed effort #2).

But, I did learn several things, including this post:

https://sourceforge.net/p/davmail/mailman/davmail-users/thread/x2ey374g953.fsf%40vestur.ifi.uio.no/

At the bottom of the thread, the developer of davmail recommends setting

davmail.imapAlwaysApproxMsgSize=true

in the configuration file. That one change has made MS outlook + gnus as
fast (or slow) as it was before needing the davmail shim.

Leo


Re: Getting email from MS outlook into emacs

2023-11-30 Thread Max Nikulin

On 28/11/2023 10:09, Doyley, Marvin M. wrote:
I have been trying to configure mbsync to download email from MS 
Outlook.  Unfortunately, the new oauth2 authentication makes things 
difficult, especially since my institution has disabled the Azure App 
permission.


I am unsure if the following is applicable to this particular case. 
Accidentally I have noticed a piece of wisdom from alpine developers. 
Mutt is mentioned in linked pages as well, so it might be suitable for 
Emacs users (or developers):


https://alpineapp.email/alpine/alpine-info/misc/xoauth2.html

that includes besides Gmail "Setting Up Alpine with Outlook or Office 365".




Re: Getting email from MS outlook into emacs

2023-11-30 Thread Fraga, Eric
On Wednesday, 29 Nov 2023 at 14:08, Presnell,Brett Douglas wrote:
> I had to deal with this last spring.  I finally got things working again
> with mbsync, msmtp, mu/mu4e, and for the oauth stuff, pizauth.  This
> combination has worked well for me ever since.  Most of the details can
> be found at

Thank you for this.  Very useful.  I have davmail working for me for
authentication so I'm going to stick to what's working.  However, it's
nice to know that there is another route possible should davmail stop
working.  But sad that we have to through these contortions just to
access our email.

-- 
: Eric S Fraga, with org release_9.6.6-418-g294a4d in Emacs 30.0.50


Re: Getting email from MS outlook into emacs

2023-11-29 Thread Presnell,Brett Douglas


I had to deal with this last spring.  I finally got things working again
with mbsync, msmtp, mu/mu4e, and for the oauth stuff, pizauth.  This
combination has worked well for me ever since.  Most of the details can
be found at

   https://brettpresnell.com/post/email/

I am still using an early version of pizauth, so it's possible that the
details of setting it up may have changed a bit.




Re: Getting email from MS outlook into emacs

2023-11-28 Thread Martin Steffen



> "Ihor" == Ihor Radchenko  writes:

Ihor> alain.coch...@unistra.fr writes:

>> ... except when institution prohibits redirecting to another
>> email provider -- my case ...

Ihor> I would then simply use another email for most of the
Ihor> communication.  The institution email would then just be
Ihor> needed to communicate with institute-wide announcements.


That's a possibility I had indeed thought about, because also for me
it's forbidden to forward (automatically or not) stuff outwards from the
domain. I think it's not forbidden to "move" or sync emails to local
disk, as far as I can see, though I was not able to reasonably
automatize that (like with davmail, though that almost worked for a time
resp. partially...)

For institutional seasonal greetings or general announcements the
muddled outlook access would even be acceptable for me, who
cares. Unfortunately, there are many emails (from inside the
organization, a university) that are individual, relevant, and at times
urgent and requiring (re-)action and preferably efficient
organization, overview, and handling, but I cannot use alternative
email-addresses for that.



Martin






Ihor> -- Ihor Radchenko // yantar92, Org mode contributor, Learn
Ihor> more about Org mode at .  Support Org
Ihor> development at , or support my
Ihor> work at 




Re: Getting email from MS outlook into emacs

2023-11-28 Thread Ihor Radchenko
alain.coch...@unistra.fr writes:

> ... except when institution prohibits redirecting to another email
> provider -- my case ...

I would then simply use another email for most of the communication.
The institution email would then just be needed to communicate with
institute-wide announcements.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Getting email from MS outlook into emacs

2023-11-28 Thread Alain . Cochard
Ihor Radchenko writes on Tue 28 Nov 2023 08:34:

 > ... except when institution also prohibits anything but MS Outlook
 > to access the MS Exchange protocol. In such dire scenario, the only
 > option left is redirecting all the emails to another email provider
 > that can be accessed via MSTP.

... except when institution prohibits redirecting to another email
provider -- my case ...

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France | [ slot available for rent ]




Re: Getting email from MS outlook into emacs

2023-11-28 Thread Ihor Radchenko
"Fraga, Eric"  writes:

> On Tuesday, 28 Nov 2023 at 08:34, Ihor Radchenko wrote:
>> ... except when institution also prohibits anything but MS Outlook to
>> access the MS Exchange protocol. 
>
> Indeed but my experience has often been that such restrictive practices
> are the result of blind clicking on the part of the IT department and
> can be rescinded through discussion with them.

Not for me :( But it is definitely worth trying to reach out the IT if
someone else runs into such problem.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Getting email from MS outlook into emacs

2023-11-28 Thread Fraga, Eric
Hi Martin,

On Tuesday, 28 Nov 2023 at 09:40, Martin Steffen wrote:
> that leaves people like me out in the rain, someone who just wants a
> reliable, stable plain old email server which is widely compatible
> (even if only backward compatible) and the leaves the choice of
> mailreader(s)q to the user.  [...]  My current goal is not to get
> access to the server enabled properly again, but to get the emails
> (automatically) off the server, like 20+ years ago, when internet and
> access to servers was unrealiable over "modem" dial-ups. So back to
> the future, so to say.

I share your pain. :-( Hard to believe that the 80s or 90s were the
pinnacle of computing when it comes to email (not to mention newsgroups
although there is promise in ActivityPub related approaches).

Luckily, for me, davmail (currently) works.  And I use POP to make sure
I have copies of all of my emails.  Links from org to my emails will
always continue to work and I do not depend on the server once
downloaded.

eric

-- 
: Eric S Fraga, with org release_9.6.7-661-g34ee6f in Emacs 30.0.50


Re: Getting email from MS outlook into emacs

2023-11-28 Thread Fraga, Eric
On Tuesday, 28 Nov 2023 at 08:34, Ihor Radchenko wrote:
> ... except when institution also prohibits anything but MS Outlook to
> access the MS Exchange protocol. 

Indeed but my experience has often been that such restrictive practices
are the result of blind clicking on the part of the IT department and
can be rescinded through discussion with them.  Over the years I have
been in my current institution, I have had these kinds of discussions
several times (using Linux, not Windows; using other MUAs, not Outlook;
etc.) and have managed to get the access I needed almost always.

But some places are probably a lost cause in this regard unfortunately.
Tail wagging the dog comes to mind...

-- 
: Eric S Fraga, with org release_9.6.7-661-g34ee6f in Emacs 30.0.50


Re: Getting email from MS outlook into emacs

2023-11-28 Thread Martin Steffen



Hi,

not that I have a solution, but I would like to know one as well. Ever
since my organization moved to more or less exclusively Outlook, email
as working tool (for me) has constantly deteriorated. 2FA was one of the
last of the innovations, that was hard to "work with" as non
Microsoft/Outlook user (not Mac for me by emacs/linux). It's
increasingly frustrating, since it's a small drip-drip-drip downhill
experience. Once you get it sort of working again after it broke again,
they roll out a new "improvement" or feature after some time, which
perhaps adds some fancy wrinkles to the constellation of tremendous
things outlooks probably offers (I am just waiting for the
CHATGTP-plug-in that answers your emails for yourself...), but that
leaves people like me out in the rain, someone who just wants a
reliable, stable plain old email server which is widely compatible (even
if only backward compatible) and the leaves the choice of mailreader(s)q
to the user.

There seem to be features, that I don't want to get used to (seem like
auto-expire, emails vanish if read but not handled properly or
something), other emails I delete constantly re-awake (but in an expired
status, but still shown for me), other are undeletable (which leaves me
with a huge zombie-inbox), some are never shown in emacs-gnus.

So, I tried different approaches, all did not work (or stopped working
after a while, maybe after new "improvements" on the server side),
including davmail, procmail, and some other "sync" solutions if forgot,
but the main stumbling stone seemed 2FA ever since that was
introduced. I did not try mbsync though (maybe I will when I have time),
so I cannot really help.

But as said, I'd be likewise interested in directions for approaches. My
current goal is not to get access to the server enabled properly again,
but to get the emails (automatically) off the server, like 20+ years
ago, when internet and access to servers was unrealiable over "modem"
dial-ups. So back to the future, so to say.

best, Martin












Re: Getting email from MS outlook into emacs

2023-11-28 Thread Ihor Radchenko
"Fraga, Eric"  writes:

>> Does anybody have a workaround?  I just want the email message to be
>> linked to my todos, which is almost impossible.  
>
> My institution is the same.
>
> I solved this problem by using davmail [1] as an intermediary.  This
> works well interacting with MS Exchange servers with multi-factor
> authentication.  I then use gnus to read my emails.

... except when institution also prohibits anything but MS Outlook to
access the MS Exchange protocol. In such dire scenario, the only option
left is redirecting all the emails to another email provider that can be
accessed via MSTP. Of course, replying does not work then and one has to
use the browser to send emails from institution email.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Getting email from MS outlook into emacs

2023-11-28 Thread Fraga, Eric
Hi Marvin,

On Tuesday, 28 Nov 2023 at 03:09, Doyley, Marvin M. wrote:
> I have been trying to configure mbsync to download email from MS
> Outlook.  Unfortunately, the new oauth2 authentication makes things
> difficult, especially since my institution has disabled the Azure App
> permission.
>
> Does anybody have a workaround?  I just want the email message to be
> linked to my todos, which is almost impossible.  

My institution is the same.

I solved this problem by using davmail [1] as an intermediary.  This
works well interacting with MS Exchange servers with multi-factor
authentication.  I then use gnus to read my emails.

HTH,
eric

Footnotes:
[1]  https://davmail.sourceforge.net/

-- 
: Eric S Fraga, with org release_9.6.7-661-g34ee6f in Emacs 30.0.50