From 8524aaa6e7b68c5ce623abd0fab03db9617ff79f Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 31 Oct 2024 16:52:46 +0300 Subject: [PATCH] notes: add refresh davmail token info --- notes/davmail.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 notes/davmail.md diff --git a/notes/davmail.md b/notes/davmail.md new file mode 100644 index 0000000..690767d --- /dev/null +++ b/notes/davmail.md @@ -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`