Difference between revisions of "Bitmessage"

From Organic Design wiki
m
m (Use your mail client as the UI)
Line 1: Line 1:
 
== Use your mail client as the UI ==
 
== Use your mail client as the UI ==
 
Brilliant little script that sets up a basic ''POP3'' and ''SMTP'' server on ''localhost'' to give Bitmessage an email interface for example that Thunderbird can connect to. This mean the messages can be organised in a local folder structure or easily coped to your ''IMAP'' structure.
 
Brilliant little script that sets up a basic ''POP3'' and ''SMTP'' server on ''localhost'' to give Bitmessage an email interface for example that Thunderbird can connect to. This mean the messages can be organised in a local folder structure or easily coped to your ''IMAP'' structure.
# First enable the [https://bitmessage.org/wiki/API_Reference Bitmessage API] in your local ''keys.dat'' configuration file.
+
1. First enable the [https://bitmessage.org/wiki/API_Reference Bitmessage API] in your local ''keys.dat'' configuration file.
# Install the [https://github.com/Dokument/PyBitmessage-Daemon PyBitmessage-Daemon] script into your home folder (I used <tt>git clone git://github.com/Dokument/PyBitmessage-Daemon.git</tt> for easy update) and run it with <tt>python daemon.py</tt>.
+
2. Install the [https://github.com/Dokument/PyBitmessage-Daemon PyBitmessage-Daemon] script into your home folder (I used <tt>git clone git://github.com/Dokument/PyBitmessage-Daemon.git</tt> for easy update) and run it with <tt>python daemon.py</tt>.
# Install the [http://github.com/Arceliar/bmwrapper bmwrapper] into your home (I used git clone again)
+
3. Install the [http://github.com/Arceliar/bmwrapper bmwrapper] into your home (I used git clone again)
# Set up an account on your mail client on ''localhost'', POP3 on ''12344'' and SMTP on ''12345'' as shown [https://github.com/Arceliar/bmwrapper here].
+
4. Set up an account on your mail client on ''localhost'', POP3 on ''12344'' and SMTP on ''12345'' as shown [https://github.com/Arceliar/bmwrapper here].
# Create a ''.desktop'' file that runs a launch shell script
+
5. Create a ''.desktop'' file that runs a launch shell script
# Create the launch script that runs a separate launch script for each of the three e.g.
+
6. Create the launch script that runs a separate launch script for each of the three e.g.
 
{{code|<pre>#!/bin/sh
 
{{code|<pre>#!/bin/sh
 
cd ~/PyBitmessage
 
cd ~/PyBitmessage
 
./bm1.sh & ./bm2.sh & ./bm3.sh
 
./bm1.sh & ./bm2.sh & ./bm3.sh
 
</pre>}}
 
</pre>}}
# Create each of the three launchers one to run each of the scripts with ''python2.7'', for example the first of mine is:
+
7. Create each of the three launchers one to run each of the scripts with ''python2.7'', for example the first of mine is:
 
{{code|<pre>python2.7 ~/PyBitmessage/src/bitmessagemain.py</pre>}}
 
{{code|<pre>python2.7 ~/PyBitmessage/src/bitmessagemain.py</pre>}}
# Ensure all the launchers have executable permission. This complicated procedure is required because each one is a daemon that doesn't return and won't run in the background using the ampersand.
+
8. Ensure all the launchers have executable permission. This complicated procedure is required because each one is a daemon that doesn't return and won't run in the background using the ampersand.
# You can check if they're running with '''netstat -nlp''' and check you have apps listening on ''8442'', ''12344'' and ''12345''.
+
9. You can check if they're running with '''netstat -nlp''' and check you have apps listening on ''8442'', ''12344'' and ''12345''.

Revision as of 19:44, 19 June 2013

Use your mail client as the UI

Brilliant little script that sets up a basic POP3 and SMTP server on localhost to give Bitmessage an email interface for example that Thunderbird can connect to. This mean the messages can be organised in a local folder structure or easily coped to your IMAP structure. 1. First enable the Bitmessage API in your local keys.dat configuration file. 2. Install the PyBitmessage-Daemon script into your home folder (I used git clone git://github.com/Dokument/PyBitmessage-Daemon.git for easy update) and run it with python daemon.py. 3. Install the bmwrapper into your home (I used git clone again) 4. Set up an account on your mail client on localhost, POP3 on 12344 and SMTP on 12345 as shown here. 5. Create a .desktop file that runs a launch shell script 6. Create the launch script that runs a separate launch script for each of the three e.g.

#!/bin/sh
cd ~/PyBitmessage
./bm1.sh & ./bm2.sh & ./bm3.sh

7. Create each of the three launchers one to run each of the scripts with python2.7, for example the first of mine is:

python2.7 ~/PyBitmessage/src/bitmessagemain.py

8. Ensure all the launchers have executable permission. This complicated procedure is required because each one is a daemon that doesn't return and won't run in the background using the ampersand. 9. You can check if they're running with netstat -nlp and check you have apps listening on 8442, 12344 and 12345.