There is a new feature of the Distribution Servlet (technically it's
been around for a week or two but it had a nasty bug in it), which is
accessible at http://127.0.0.1:8889/disturl.txt . It is a tiny plaintext
file that returns the address of the local distribution node, creating
one if necessary (obviously it can only be accessed from localhost and
the detected IP address). It can be included in a .signature
automatically. For example, using mutt, I put in my .muttrc:
set signature="~/bin/gensig|"
And created the attached script as ~/bin/gensig (you need
possibly empty .signature.base and .signature.end files for this to work
properly).

Thus I have a distribution node URL automatically attached to my
signature every time I send an email. This is something I would like to
encourage.
-- 
Matthew Toseland
[EMAIL PROTECTED][EMAIL PROTECTED]
Full time freenet hacker.
http://freenetproject.org/
Freenet Distribution Node (temporary) at http://amphibian.dyndns.org:8889/9sxxdW4EH-c/
ICTHUS.
#!/bin/bash
cd ~
wget http://amphibian.dyndns.org:8889/disturl.txt -O .signature.middle -o /dev/null
echo Freenet Distribution Node \(temporary\) at `cat .signature.middle` > 
.signature.middle.new
mv .signature.middle.new .signature.middle
cat .signature.base .signature.middle .signature.end > .signature
cat .signature

Attachment: msg06276/pgp00000.pgp
Description: PGP signature

Reply via email to