It's possible to use an e-mail client, such as Thunderbird, to interface with Freechains.
We expect that all content sent to chain /mail uses these instructions.
You will need the following set of tools:
- Thunderbird: to read & write e-mails
send.py: an SMTP server to intercept sends and redirect to a chainrecv.py: a script to read a chain to a mailbox.
Disclaimer: This tool is mostly a hack to show a proof of concept of how a rich UI could be available in Freechains with support for threaded view, text formatting, inlined images, and file attachments.
-
Thunderbird:
- open Thunderbird
- cancel account creation initial popup
- click on
Set up an account: -> Movemail- Identity
Your Name: nameEmail Address: name@localhost- the
nameyou choose is irrelevant
Outgoing Serter: localhostAccount Name: Freechains
- Identity
- right click on
FreechainsaccountSettings -> Outgoing Server (SMTP) -> Default -> EditPort: 2525
- configure
Inboxto threaded display mode
-
Local mailbox:
$ sudo touch /var/mail/<username>
$ sudo chown <username> /var/mail/<username>
$ sudo chmod 600 /var/mail/<username>
recv.py:- edit the file and set variable
USERto the same as<username>above
- edit the file and set variable
First, start the SMTP server:
$ ./send.py
Type your private key to sign all messages: <...>
To receive e-mails, execute recv.py periodically:
$ ./recv
To send e-mails, always set To as /mail@localhost.