4

Mailvelope in Nextcloud Mail, refined

 3 years ago
source link: https://blog.wuc.me/2020/05/18/nextcloud-mail-mailvelope-refined.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Mailvelope in Nextcloud Mail, refined
Christoph Wurst

Christoph Wurst

Free and open source software enthusiast. Hobbyist Photographer. Developer at Nextcloud GmbH.

Mailvelope in Nextcloud Mail, refined

2 minute read

Nextcloud Mail has offered PGP encryption via a third-party browser extension Mailvelope for a while. Recently we discovered that there were some issues due to our rich text editor. This led me into revisiting the integration and my attempted bugfix turned into quite an enhancement.

What we had beforePermalink

Prior to Mail v1.3.5, our app was not even aware of the Mailvelope integration. The user configured their Nextcloud domain in the extension settings and Mailvelope would dected textareas and similar HTML inputs and show a button to open a popup with the encryption editor. The user then had to pick the recipients again (Mailvelope had no clue about the recipient selection in Nextcloud Mail) and once the message got encrypted, it was written back to the original window.

This solution worked okay-ish for a long time, but never felt seamless due to the redundant recipient selection and the popup window.

Switching to API modePermalink

To get some help with fixing the integration after breaking with our CKEditor as rich text editor, I contacted Mailvelope support and got quick feedback from one of the developers. I was introduced into the API mode, where an application integrating Mailvelope could interact with the extension programmatically.

This means Nextcloud Mail is now capable of knowing whether Mailvelope is installed and enabled for the domain.

The new sending experiencePermalink

As Mail is now capable of detecting Mailvelope, it will show an encryption option in the new message composer.

The

Note that the Send button also now indicated whether whether the composed message will be sent encrypted or in plain text. Simple installations without Mailvelope will still only show Send, so the interface is less complex for those users.

Once the encryption option is enabled, the editor component will be replaced by an editor of Mailvelope.

The Mailvelope editor in Nextcloud Mail v1.3.5

See, no more popup window! No more redundant recipient selection. Nextcloud Mail will pass the recipients to Mailvelope for you. In fact, it will even check if all the picked recipients have a key available and prevent sending if this condition is not met.

Better reading experiencePermalink

The switch to the API version of Mailvelope also allows us to embed a display container into Nextcloud Mail, so the experience feels a bit more integrated.

The Mailvelope editor in Nextcloud Mail v1.3.5

You can directly see and download the attachments.

Smoother repliesPermalink

When replying to an encrypted message, we will pass the raw data into Mailvelope. The extension will decrypt and quote the message for you, so it’s very convenient to have encrypted conversations.

The Mailvelope editor in Nextcloud Mail v1.3.5

Get it nowPermalink

Nextcloud . Upgrade and start encrypting more messages now :wink:

If you have any questions or feedback please let us know on the forum :)

Tags: announcement mail nextcloud

Updated: May 18, 2020

Previous Next

You May Also Enjoy


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK