Go to file
Leander Beernaert 9390cb64b4 GODT-1817: Restore move related feature tests
Gluon updated to latest dev commit, required for feature. Checks from
move_local_folder.feature are implemented in Gluon.
2023-01-06 10:58:07 +01:00
.github/ISSUE_TEMPLATE
cmd Other: Update copyright year 2023-01-02 11:09:11 +01:00
dist GODT-2134: fix dock icon on macOS when launched with '--no-window'. 2022-11-22 11:49:52 +00:00
doc GODT-1260: Renaming 2022-05-18 11:23:38 +02:00
extern Other: added vcpkg as a submodule + build scripts 2022-09-01 13:23:12 +02:00
internal GODT-1817: Restore move related feature tests 2023-01-06 10:58:07 +01:00
pkg GODT-1817: Restore old date message feature test + fix 2023-01-04 13:37:28 +01:00
release-notes Other: Update release notes. 2022-12-14 11:08:34 +01:00
tests GODT-1817: Restore move related feature tests 2023-01-06 10:58:07 +01:00
utils Other: added C/C++ header template file (*.h.in) type to missing_license.sh script. 2023-01-03 17:42:53 +01:00
.gitattributes
.gitignore GODT-1779: Remove go-imap 2022-11-16 12:26:08 +01:00
.gitlab-ci.yml Other: build vault editor. 2022-11-16 13:48:31 +01:00
.gitmodules Other: added vcpkg as a submodule + build scripts 2022-09-01 13:23:12 +02:00
.golangci.yml GODT-2034: Basic vault migration ability (proof of concept) 2022-11-16 13:48:30 +01:00
BUILDS.md GODT-1941: Update documentation 2022-10-17 17:58:54 +02:00
CONTRIBUTING.md GODT-1260: Renaming 2022-05-18 11:23:38 +02:00
COPYING_NOTES.md GODT-1817: Restore move related feature tests 2023-01-06 10:58:07 +01:00
Changelog.md Other: Bridge Perth Narrows v3.0.9 2022-12-20 14:18:50 +01:00
LICENSE
Makefile Other: Bridge Perth Narrows v3.0.9 2022-12-20 14:05:38 +01:00
README.md GODT-1751: switch from protonmail.com to proton.me domain 2022-10-27 13:13:05 +00:00
TODO.md GODT-1158: Store full messages bodies on disk 2021-11-30 10:12:36 +01:00
go.mod GODT-1817: Restore move related feature tests 2023-01-06 10:58:07 +01:00
go.sum GODT-1817: Restore move related feature tests 2023-01-06 10:58:07 +01:00

README.md

Proton Mail Bridge and Import Export app

Copyright (c) 2022 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

Bridge application

  • BRIDGESTRICTMODE: tells bridge to turn on bbolt's "strict mode" which checks the database after every Commit. Set to 1 to enable.

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

Files

Database

The database stores metadata necessary for presenting messages and mailboxes to an email client:

  • Linux: ~/.cache/protonmail/bridge/<cacheVersion>/mailbox-<userID>.db (unless XDG_CACHE_HOME is set, in which case that is used as your ~)
  • macOS: ~/Library/Caches/protonmail/bridge/<cacheVersion>/mailbox-<userID>.db
  • Windows: %LOCALAPPDATA%\protonmail\bridge\<cacheVersion>\mailbox-<userID>.db

Preferences

User preferences are stored in json at the following location:

  • Linux: ~/.config/protonmail/bridge/prefs.json
  • macOS: ~/Library/ApplicationSupport/protonmail/bridge/prefs.json
  • Windows: %APPDATA%\protonmail\bridge\prefs.json

IMAP Cache

The currently subscribed mailboxes are held in a json file:

  • Linux: ~/.cache/protonmail/bridge/<cacheVersion>/user_info.json (unless XDG_CACHE_HOME is set, in which case that is used as your ~)
  • macOS: ~/Library/Caches/protonmail/bridge/<cacheVersion>/user_info.json
  • Windows: %LOCALAPPDATA%\protonmail\bridge\<cacheVersion>\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/<cacheVersion>/bridge.lock (unless XDG_CACHE_HOME is set, in which case that is used as your ~)
  • macOS: ~/Library/Caches/protonmail/bridge/<cacheVersion>/bridge.lock
  • Windows: %LOCALAPPDATA%\protonmail\bridge\<cacheVersion>\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