Open julianuu opened 1 year ago
Well you just started DavMail, you didn't initiate any connections.
You have to configure your mail client to connect through DavMail. Note that a quick test is to access the Caldav/HTTP endpoint
It would have been also nice if it was possible to run davmail
with .server=true
and still make davmail show a prompt when oath is required. In my case, my provider requires me to refresh the oauth tokens every few weeks, and I have to run davmail interactively in order to refresh these tokens when they expire.
The ideal behavior IMO is the following: When refreshing oauth token is required, davmail
would run firefox ${oauth url}
(or a configurable command), and spawned a small http server on localhost
that would get the token by itself, and thus spare me the copy-paste.
I wrote a python wrapper script, that runs davmail by itself, reads the stdout and opens firefox
with the oauth2 login url if needed. I even went further and used the cool tool brotab
to iterate the tabs of the browser and pastes that resulting auth link into davmail. This is fully automatic, but it requires brotab installed (including the browser extension).
The script can be modified to run a different browser, and to not use brotab but something else (perhaps spawn zenity
).
I thought this may be useful to some people here.
From what I understood,
davmail
should initiate an oauth authentication dialog on startup. However it doesn't.In my config I have
The log is
I use arch linux, I have the current version of
davmail
, downloaded directly or via AUR. My window manager does not have a tray bar. Could that be the problem?What am I missing?