• Stars
    star
    1,069
  • Rank 41,889 (Top 0.9 %)
  • Language
    Go
  • License
    GNU General Publi...
  • Created about 4 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Proton Mail Bridge application

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}

More Repositories

1

WebClients

Monorepo hosting the proton web clients
TypeScript
4,171
star
2

proton-mail-android

Proton Mail Android app
Kotlin
1,750
star
3

ios-mail

Secure email that protects your privacy
Swift
1,352
star
4

gopenpgp

A high-level OpenPGP library
Go
990
star
5

gluon

An IMAP server library written in Go
Go
339
star
6

proton-python-client

Python Proton client module
Python
323
star
7

go-crypto

Fork of go/x/crypto, providing an up-to-date OpenPGP implementation
Go
308
star
8

react-components

List of React components for Proton web-apps
TypeScript
177
star
9

proton-mail

React web application to manage ProtonMail
TypeScript
172
star
10

design-system

Design system for new Proton project
SCSS
124
star
11

proton-calendar

Proton Calendar built with React.
TypeScript
120
star
12

proton-drive

TypeScript
111
star
13

protoncore_android

Proton Core components for Android
Kotlin
111
star
14

proton-shared

Shared logic for Proton web-app
TypeScript
71
star
15

go-appdir

Minimalistic Go package to get application directories such as config and cache
Go
63
star
16

proton-mail-settings

React web application to manage ProtonMail settings
TypeScript
52
star
17

inbox-desktop

Desktop application for Mail and Calendar, made with Electron
46
star
18

ct-monitor

A monitoring tool for certificate transparency of ProtonMail's SSL/TLS certificates
Python
42
star
19

go-srp

Go
36
star
20

pmcrypto

TypeScript
35
star
21

go-proton-api

Proton API library used by Go-based clients and tools
Go
32
star
22

gosop

Stateless CLI for GopenPGP
Go
21
star
23

libsieve-php

libsieve-php is a library to manage and modify sieve (RFC5228) scripts. It contains a parser for the sieve language (including extensions) and a client for the managesieve protocol. It is written entirely in PHP 8+.
PHP
20
star
24

mutex-browser

Acquire a mutex in the browser through IndexedDB or cookies
TypeScript
19
star
25

android-mail

Proton Mail Android app
Kotlin
18
star
26

releaser

A release note generator that reads and parses git commits and retrieves issue links from GitHub.
JavaScript
16
star
27

encrypted-search

Encrypted search functionality for the browser
JavaScript
14
star
28

go-mime

Go
14
star
29

proton-account

Proton account settings
TypeScript
13
star
30

sieve.js

Javascript library to wrap sieve configuration
JavaScript
13
star
31

proton-pack

Command to run a dev-server, build etc. with OpenPGP. On top of webpack.
JavaScript
10
star
32

cpp-openpgp

C++
10
star
33

proton-bundler

CLI tools to bundle Proton web clients for deploys
JavaScript
9
star
34

bip39

JavaScript implementation of Bitcoin BIP39
TypeScript
8
star
35

componentGenerator

CLI to create new components for the Front-End @ ProtonMail.
JavaScript
7
star
36

interval-tree

Red-black interval tree
TypeScript
7
star
37

php-coding-standard

ProtonLabs Coding Standard for PHP_CodeSniffer (extending PER coding style)
PHP
7
star
38

pm-srp

ProtonMail SRP and auth library
JavaScript
7
star
39

source-map-parser

Command line utility to parse js source maps with with node.js
JavaScript
6
star
40

haproxy-health-check

HAProxy Health Check for EXABGP
Python
6
star
41

pt-formgenerator

Html form generator library
JavaScript
6
star
42

account

JavaScript
6
star
43

proton-translations

6
star
44

go-rfc5322

An RFC5322 address/date parser written in Go
Go
6
star
45

apple-fusion

fusion is a lightweight and easy-to-use UI testing framework built on top of Apple XCTest that supports testing on iOS and macOS platforms. Developed with readability and reliability in mind.
Swift
6
star
46

go-ecvrf

Golang implementation of ECVRF-EDWARDS25519-SHA512-TAI, a verifiable random function described in draft-irtf-cfrg-vrf-10.
Go
5
star
47

protonmail.github.io

HTML
5
star
48

therecipe_qt

Go
5
star
49

proton-parking

Gatsby website for parking domains
TypeScript
4
star
50

webcrypto-spec

Specification for extension of webcrypto api
HTML
4
star
51

ios-networking

shared networking framworks
Swift
4
star
52

proton-i18n

CLI to manage translations for client apps
JavaScript
3
star
53

protoncore_ios

Ruby
3
star
54

proton-lint

Modern eslint config for a more civilized age
JavaScript
3
star
55

fe-proxy

A simple proxy server that redirects to different urls
JavaScript
3
star
56

android-fusion

Android Fusion is a extensible lightweight Android instrumented test framework that combines Espresso, UI Automator and Compose Ui Test into one easy-to-use API with the clear syntax, at the same time keeping the native Android frameworks APIs unchanged.
Kotlin
3
star
57

Illuminate-Foundation

Illuminate Foundation Mirror
PHP
2
star
58

opendkim

This is a fork of https://sourceforge.net/p/opendkim/git/ci/master/tree/
C
2
star
59

logging

go logging
Go
2
star
60

openpgp-interop-test-analyzer

Python scripts to analyze results from the Openpgp interoperability test suite
Python
2
star
61

danger-random_reviewers

Ruby
1
star
62

u2f

JavaScript
1
star
63

proton-mobile-test

HTML
1
star
64

react-storybook

Isolated React components from https://github.com/ProtonMail/react-components
JavaScript
1
star
65

key-transparency-web-client

TypeScript
1
star
66

x509-sign

Simple endpoint to sign ASN1 strings
PHP
1
star
67

gomobile-build-tool

Go
1
star
68

openpgp-interop-test-docker

Docker image to run the OpenPGP interoperability test suite
Dockerfile
1
star
69

therecipe_env_darwin_arm64_513

C++
1
star
70

pm-key-transparency-go-client

Go
1
star