[hashcash] Re: New hashcash-sendmail 1.18

  • From: Adam Back <adam@xxxxxxxxxxxxxxx>
  • To: hashcash@xxxxxxxxxxxxx
  • Date: Mon, 9 Aug 2004 06:27:43 -0400

Hi

I'm not sure what else changed (I did not archive previous script so
can't run diff on it), but it's not working now.

You can see that it successfully queues the msg into .hashcash/queue,
but I suppose the fork/exec or something fails.  There ends up being
no hashcash process running even if I set bitconf to 30 bits (so it
would take a while if it started).  So then the mail stays queues and
never gets sent.

The hashcash.log entries now look like this:

Mon Aug  9 06:16:11 2004 hashcash-sendmail[7017]: queued 
9310-1092046571.7017.msg
Mon Aug  9 06:16:11 2004 hashcash-sendmail[7020]: Earlier hashcash daemon must 
have died; replacing lost queue items.
Mon Aug  9 06:16:11 2004 hashcash-sendmail[7020]: daemon started on 
bitchcake.off.net; computing 20 bits
Mon Aug  9 06:16:11 2004 hashcash-sendmail[7020]: $Id: hashcash-sendmail,v 1.18 
2004/08/07 18:36:16 kyle Exp $
Mon Aug  9 06:16:11 2004 hashcash-sendmail[7020]: found 1078706947.30424.msg
Mon Aug  9 06:16:11 2004 hashcash-sendmail[7020]: cleanup
Mon Aug  9 06:16:11 2004 hashcash-sendmail[7020]: KILL hashcash PID

An example of what is in the state file is:

cat 9310-1092046571.7017.dat
@args = (
          "--",
          "adam\@cypherspace.org"
        );
@rcpt = (
          {
            "bits" => 30,
            "addr" => "adam\@cypherspace.org",
            "nice" => 19
          }
        );
1;

I am using perl-5.8.3.

Adam

On Sat, Aug 07, 2004 at 01:45:02PM -0500, Kyle Hasselbacher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I made a couple of changes so it would read all of hashcash's output
> (instead of just the first line), so it should be good with multi-line
> tokens now.  I say this without having tested it.
> 
> Also, since I've experienced a couple of unusual failures, I saw a need to
> check whether the daemon died without warning.  When it starts up now, it
> will look for things in the tmp directory and put them back in queue.  This
> should make it recover from those situations better.
> 
> If someone can try this out with big v1 multi-line tokens, I'd be
> interested to hear whether it works.
> 
> As always, it's available right here:
> 
> http://www.toehold.com/~kyle/hashcash/
> - -- 
> Kyle Hasselbacher | Everything you know is wrong, but some of it is a
> kyle@xxxxxxxxxxx  | useful first approximation.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> 
> iD8DBQFBFSMu10sofiqUxIQRArN8AKCg0o84up/aRGuz1IsrXJjls98WKACfXG/r
> REJ5B3NO1xTmxaLo0qwvcBw=
> =xWw6
> -----END PGP SIGNATURE-----

Other related posts: