You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you very much for your work on davmail.
I use it daily.
I usually start davmail in the terminal.
The problem is when my outlook login session times out, and I am not at home.
It would be really nice if you could print the login URL on the stdout in the console,
and then read the URL/token after login on stdin.
If not by default, perhaps you could add an option for this.
Then when I am connected via SSH, I could simply restart davmail and get the new token using the browser,
and simply paste the URL/token in the console.
The text was updated successfully, but these errors were encountered:
@floatious : I would find this useful as well. I'd be happy if the login URL would just be printed to the log file.
I think there is a way of doing at least O365Manual completely from a terminal, but it's not exactly universal. I haven't done it myself (for the reason given later), but I know the first step is to set (in your davmail.properties file) davmail.oauth.tokenFilePath to a separate file in which to store the token. Then you run some script to update the token in the token file, but the script created by @mguessan for doing that is Windows-only. You can find it at https://github.com/mguessan/o365psauth. I would like to think it should be possible to convert that to something that would run on Linux and Mac, but I haven't looked into it and maybe not with the Windows .dll it uses.
@floatious : Oh, I forgot about issue #338. Please read that relevant issue. I think you need to start DavMail with the -token argument. I've never attempted this myself, so I might be misunderstanding how it works. If what I'm reading there is correct, you don't need to use https://github.com/mguessan/o365psauth anymore. Executing DavMail with the -token argument on a regular basis should be sufficient. Make sure you also have the property davmail.oauth.persistToken=true set.
Note: I think you need to be using DavMail 6.2.2 for this.
Hello Mickaël,
Thank you very much for your work on davmail.
I use it daily.
I usually start davmail in the terminal.
The problem is when my outlook login session times out, and I am not at home.
It would be really nice if you could print the login URL on the stdout in the console,
and then read the URL/token after login on stdin.
If not by default, perhaps you could add an option for this.
Then when I am connected via SSH, I could simply restart davmail and get the new token using the browser,
and simply paste the URL/token in the console.
The text was updated successfully, but these errors were encountered: