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
toad at amphibian.dyndns.org/amphibian at users.sourceforge.net
Full time freenet hacker.
http://freenetproject.org/
Freenet Distribution Node (temporary) at 
http://amphibian.dyndns.org:8889/9sxxdW4EH-c/
ICTHUS.
-------------- next part --------------
#!/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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20030116/086193fd/attachment.pgp>

Reply via email to