notes: add refresh davmail token info
This commit is contained in:
parent
bc94e8831a
commit
8524aaa6e7
1 changed files with 19 additions and 0 deletions
19
notes/davmail.md
Normal file
19
notes/davmail.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# Davmail
|
||||||
|
|
||||||
|
## Update refresh token
|
||||||
|
|
||||||
|
Stop current `davmail.service` and clone properties to a temp file
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo systemctl stop davmail.service
|
||||||
|
cat $(sudo systemctl cat davmail.service | awk '/ExecStart=/ { print $2; }') > /tmp/davmail.properties
|
||||||
|
```
|
||||||
|
|
||||||
|
Start davmail manually
|
||||||
|
|
||||||
|
```sh
|
||||||
|
davmail /tmp/davmail.properties
|
||||||
|
```
|
||||||
|
|
||||||
|
Open renew link in the browser and copy `refreshToken` from
|
||||||
|
`/tmp/davmail.properties`
|
Loading…
Reference in a new issue