Skip to content
A bridge in Go to receive and write emails in matrix
Go Shell
Branch: master
Clone or download
Latest commit 62664f1 Sep 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
main little fix Sep 9, 2019
LICENSE Create LICENSE Aug 27, 2019
README.md Update README.md Sep 13, 2019

README.md

Matrix-EmailBridge

A matrix-bridge written in Go to let you read and write your emails in matrix. You can have multiple emailaccounts in different private rooms, write emails to multiple

Matrix room: #jojiiMail:matrix.jojii.de

Information

This bridge is currently in development. Its not 100% tested
You can run the install.sh to install it. If that does'nt work, use the steps below and contact me to fix it

Install

Just run go get to fetch the required dependencies and go build inside the folder and execute the created binary. Then you have to adjust the config file to make it work with your matrix server. Invite your bridge into a private room, it will join automatically.
If everyting is set up correctly, you can bridge the room by typing !login. Then you just have to follow the instructions. Typing !help shows a list with available commands.
Creating a new private room with the bot/bridge lets you add a different email account.

Note

Note: you should change the permissions of the cfg.json and data.db to 640 or 660 because they contain sensitive data, not every user should be able to read them!

Features

  • Receiving Email with IMAPs
  • Use custom IMAPs Server and port
  • Use the bridge with multiple email addresses
  • Use the bridge with multiple user
  • Ignore SSL certs if required
  • Detailed error codes/logging
  • Use custom mailbox instead of INBOX
  • Sending emails (to one or multiple participants)
  • Use markdown (automatically translated to HTML) for writing emails (optional)
  • Viewing HTML messages (as good as your matrix-client supports html)
  • Attaching files sent into the bridged room

TODO

  • Emailaddress blocklist (Ignore emails from given emailaddress)
  • System to send passwords not in plaintext
  • Add more header (CC/Bcc)
  • Update the installerscript
You can’t perform that action at this time.