Go to file
Leander Beernaert 09ef3b20db fix(GODT-2935): Correct error message when draft fails to create 2023-10-25 15:54:46 +02:00
.github/ISSUE_TEMPLATE
cmd
dist
doc
extern
internal fix(GODT-2935): Correct error message when draft fails to create 2023-10-25 15:54:46 +02:00
pkg fix(GODT-2966): Allow permissive parsing of MediaType parameters for import. 2023-10-09 15:14:51 +00:00
release-notes
tests test(GODT-2723): Add importing a message with remote content 2023-10-25 11:39:16 +00:00
utils chore: Add debug_assemble binary 2023-10-25 11:43:39 +00:00
.gitattributes
.gitignore
.gitlab-ci.yml chore: fixed type in QA installer CI job name. 2023-10-13 08:50:46 +00:00
.gitmodules
.golangci.yml
BUILDS.md feat(GODT-2762): bump version Go 1.20 Qt 6.4.3. 2023-09-19 07:57:59 +02:00
CONTRIBUTING.md
COPYING_NOTES.md fix(GODT-2212): Preserver Header order in message building 2023-09-25 15:05:21 +02:00
Changelog.md chore: update changelog 2023-10-17 11:58:18 +02:00
LICENSE
Makefile fix(GODT-3003): Ensure IMAP State is reset after vault corruption 2023-10-09 10:23:58 +01:00
README.md
TODO.md
go.mod fix(GODT-2970): Correctly handle rename of Inbox 2023-10-25 15:29:33 +02:00
go.sum fix(GODT-2970): Correctly handle rename of Inbox 2023-10-25 15:29:33 +02:00

README.md

Proton Mail Bridge and Import Export app

Copyright (c) 2023 Proton AG

This repository holds the Proton Mail Bridge and the Proton Mail Import-Export applications. For a detailed build information see BUILDS. The license can be found in LICENSE file, for more licensing information see COPYING_NOTES. For contribution policy see CONTRIBUTING.

Description Bridge

Proton Mail Bridge for e-mail clients.

When launched, Bridge will initialize local IMAP/SMTP servers and render its GUI.

To configure an e-mail client, firstly log in using your Proton Mail credentials. Open your e-mail client and add a new account using the settings which are located in the Bridge GUI. The client will only be able to sync with your Proton Mail account when the Bridge is running, thus the option to start Bridge on startup is enabled by default.

When the main window is closed, Bridge will continue to run in the background.

More details on the public website.

Launchers

Launchers are binaries used to run the Proton Mail Bridge or Import-Export apps.

Official distributions of the Proton Mail Bridge and Import-Export apps contain both a launcher and the app itself. The launcher is installed in a protected area of the system (i.e. an area accessible only with admin privileges) and is used to run the app. The launcher ensures that nobody tampered with the app's files by verifying their signature using a hardcoded public key. App files are placed in regular userspace and are signed by Proton's private key. This feature enables the app to securely update itself automatically without asking the user for a password.

Keychain

You need to have a keychain in order to run the Proton Mail Bridge. On Mac or Windows, Bridge uses native credential managers. On Linux, use secret-service freedesktop.org API (e.g. Gnome keyring) or pass. We are working on allowing other secret services (e.g. KeepassXC), but for now only gnome-keyring is usable without major problems.

Environment Variables

Dev build or run

  • APP_VERSION: set the bridge app version used during testing or building
  • PROTONMAIL_ENV: when set to dev it is not using Sentry to report crashes
  • VERBOSITY: set log level used during test time and by the makefile

Integration testing

  • TEST_ENV: set which env to use (fake or live)
  • TEST_ACCOUNTS: set JSON file with configured accounts
  • TAGS: set build tags for tests
  • FEATURES: set feature dir, file or scenario to test

Folders

There are now three types of system folders which Bridge recognises:

Windows Mac Linux Linux (XDG)
config %APPDATA%\protonmail\bridge-v3 ~/Library/Application Support/protonmail/bridge-v3 ~/.config/protonmail/bridge-v3 $XDG_CONFIG_HOME/protonmail/bridge-v3
cache %LOCALAPPDATA%\protonmail\bridge-v3 ~/Library/Caches/protonmail/bridge-v3 ~/.cache/protonmail/bridge-v3 $XDG_CACHE_HOME/protonmail/bridge-v3
data %APPDATA%\protonmail\bridge-v3 ~/Library/Application Support/protonmail/bridge-v3 ~/.local/share/protonmail/bridge-v3 $XDG_DATA_HOME/protonmail/bridge-v3
temp %LOCALAPPDATA%\Temp $TMPDIR if non-empty, else /tmp $TMPDIR if non-empty, else /tmp $TMPDIR if non-empty, else /tmp

Files

Base Dir Path
bridge lock file cache bridge.lock
bridge-gui lock file cache bridge-gui.lock
vault config vault.enc
gRPC server json config grpcServerConfig.json
gRPC client json config grpcClientConfig_.json
gRPC Focus server json config grpcFocusServerConfig.json
Logs data logs
gluon DB data gluon/backend/db
gluon messages data gluon/backend/store
Update files data updates
sentry cache data sentry_cache
Mac/Linux File Socket temp bridge{4_DIGITS}