We have moved to a new Sailfish OS Forum. Please start new discussions there.
10

[IDEA] Protonmail bridge for SFOS

asked 2020-03-21 13:36:36 +0200

Guillaume L. gravatar image

updated 2020-04-17 00:49:52 +0200

Hello,

Protonmail has released a feature for paying customers allowing to use their service on regular IMAP clients. The application encrypts / decrypts emails as they are imported on the computer (https://protonmail.com/bridge/).

If we had a native version of this app, we could use Protonmail in our Jolla email client.

Regards.

Guillaume

edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted
14

answered 2020-03-21 14:24:15 +0200

b gravatar image

updated 2020-03-22 17:49:40 +0200

I use Hydroxide (https://github.com/emersion/hydroxide), which I cross compiled to ARM and then run in a terminal. It works fairly well with the Sailfish native email application.

EDIT: For those of you who want to run this on your Sailfish device, here is how I did it:

Clone the hydroxide repo on your computer:

git clone https://github.com/emersion/hydroxide

Build it for your phone:

cd hydroxide/cmd/hydroxide
GOOS=linux GOARCH=arm go build

Transfer the executable to your device and place it in ~/bin/

Follow the instructions on the Hydroxide github page to set up the bridge.

In order for it to run on login, create the file ~/.config/systemd/user/hydroxide.service on your device with the following contents:

[Unit]
Description=Hydroxide ProtonMail bridge

[Service]
ExecStart=/home/nemo/bin/hydroxide serve

[Install]
WantedBy=default.target

Enable and start the unit:

systemctl --user enable hydroxide
systemctl --user start hydroxide

Now, create a general email account on your device and point it to the bridge on localhost.

edit flag offensive delete publish link more

Comments

2

@b Hey mate, I just wanted to say thanks for updating your post with the how to, much appreciated. I sat down yesterday and went through your instructions and now I have a functioning ProtonMail via the native Mail client (with a few issues)

My individual issues at the moment are:

  1. I can't receive and open email attachments.

  2. The hydroxide.service file I created can't be enabled and started for some reason. It's just 2 commands I have to run after a reboot so no big deal really

Apart from the above, I can receive and send emails without any issues.

Thanks again for providing this

apostrof ( 2020-04-07 10:14:30 +0200 )edit

Thanks for your instructions. managed to get it running today. It is awesome to have protonmail in the normal mail app. I also could not enable and start the service at first. I had to create the hydroxide.service file in /etc/systemd/user/ instead of ~/.config/systemd/user/. Then I could enable and start the service.

Roger2000 ( 2020-04-19 11:39:32 +0200 )edit

@b Thanks for the guide! The Jolla Mail is usable again :)

I had no problems with hydroxide.service living in ~/.config/systemd/user/. As with others, no attachments coming through, but that's not a biggie.

ekari ( 2020-05-15 10:50:08 +0200 )edit
1

answered 2020-05-11 01:15:24 +0200

virgi26 gravatar image

didn't PROTONMAIL opes source all their clients recently? Maybe we can get a fully native client if anyone up to it

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
9 followers

Stats

Asked: 2020-03-21 13:36:36 +0200

Seen: 1,249 times

Last updated: Apr 17 '20