From 3b0b1a457b53d59120585e9b98436c8fb0c7e03a Mon Sep 17 00:00:00 2001 From: James Houlahan Date: Tue, 26 May 2020 07:20:36 +0200 Subject: [PATCH] docs: add locations of bridge files to readme --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index 894b1636..2d6f714e 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ For a detailed build information see [BUILDS](./BUILDS.md). For licensing information see [COPYING](./COPYING.md). For contribution policy see [CONTRIBUTING](./CONTRIBUTING.md). + ## Description ProtonMail Bridge for e-mail clients. @@ -31,6 +32,7 @@ Windows, Bridge uses native credential managers. On Linux, use or [pass](https://www.passwordstore.org/). + ## Environment Variables ### Bridge application @@ -48,5 +50,34 @@ or - `FEATURES`: set feature dir, file or scenario to test +## Files +### Database +The database stores metadata necessary for presenting messages and mailboxes to an email client: +- Linux: `~/.cache/protonmail/bridge//mailbox-.db` (unless `XDG_CACHE_HOME` is set, in which case that is used as your `~`) +- macOS: `~/Library/Caches/protonmail/bridge//mailbox-.db` +- Windows: `%LOCALAPPDATA%\protonmail\bridge\\mailbox-.db` +### Preferences +User preferences are stored in json at the following location: +- Linux: `~/.cache/protonmail/bridge//prefs.json` (unless `XDG_CACHE_HOME` is set, in which case that is used as your `~`) +- macOS: `~/Library/Caches/protonmail/bridge//prefs.json` +- Windows: `%LOCALAPPDATA%\protonmail\bridge\\prefs.json` + +### IMAP Cache +The currently subscribed mailboxes are held in a json file: +- Linux: `~/.cache/protonmail/bridge//user_info.json` (unless `XDG_CACHE_HOME` is set, in which case that is used as your `~`) +- macOS: `~/Library/Caches/protonmail/bridge//user_info.json` +- Windows: `%LOCALAPPDATA%\protonmail\bridge\\user_info.json` + +### Lock file +Bridge utilises an on-disk lock to ensure only one instance is run at once. The lock file is here: +- Linux: `~/.cache/protonmail/bridge//bridge.lock` (unless `XDG_CACHE_HOME` is set, in which case that is used as your `~`) +- macOS: `~/Library/Caches/protonmail/bridge//bridge.lock` +- Windows: `%LOCALAPPDATA%\protonmail\bridge\\bridge.lock` + +### TLS Certificate and Key +When bridge first starts, it generates a unique TLS certificate and key file at the following locations: +- Linux: `~/.config/protonmail/bridge/{cert,key}.pem` (unless `XDG_CONFIG_HOME` is set, in which case that is used as your `~/.config`) +- macOS: `~/Library/ApplicationSupport/protonmail/bridge/{cert,key}.pem` +- Windows: `%APPDATA%\protonmail\bridge\{cert,key}.pem`