Gnus development mailing list
 help / color / mirror / Atom feed
From: asjo@koldfront.dk (Adam Sjøgren)
Subject: Re: hashcash
Date: Mon, 27 Sep 2004 16:45:35 +0200	[thread overview]
Message-ID: <87oejrn52o.fsf@koldfront.dk> (raw)
In-Reply-To: <m2zn3csc1f.fsf@mycroft.actrix.gen.nz>

On Mon, 27 Sep 2004 14:03:56 +1200, Paul wrote:

> My local copy has had support for "version 1" stamps since they were
> announced, but I forgot to update my web site since my CVS server
> had a disk failure and was down at the time. I'll correct that right
> now: http://users.actrix.co.nz/mycroft/hashcash.el

Great - thanks!

(I think the comment in hashcash-version could use an update
describing the change from Adam Back's "version 0" to "version 1"
above hashcash.el's description of it's version 1.2 - what do you
think?)


Oh, another thing: there is a script for mutt called
"hashcash-sendmail"¹ that apparantly appends six or so trailing spaces
to the X-Hashcash: [stamp]-header (a friend of mine uses it, and I get
those from him).

hashcash.el sends those along to the hashcash-binary which then
rejects the stamp.

In my local copy of hashcash.el I've worked around this by doing this:

--- hashcash.el.orig	2004-09-27 03:52:27.000000000 +0200
+++ hashcash.el	2004-09-27 16:30:59.000000000 +0200
@@ -211,7 +211,7 @@
 	      (setq ok (hashcash-verify-payment (cadr value))))))
 	(goto-char (point-min))
 	(while (and (not ok) (search-forward "X-Hashcash: " end t))
-	  (setq ok (hashcash-verify-payment (hashcash-token-substring))))
+	  (setq ok (hashcash-verify-payment (replace-in-string (hashcash-token-substring) " " ""))))
 	(when ok
 	  (message "Payment valid"))
 	ok))))

If there's a cleaner/better way/place to do it, it should probably be
done in hashcash.el proper.


  Best wishes,

    Adam

¹ <http://www.hashcash.org/mail/mua/hc-sendmail/>
  <http://www.toehold.com/~kyle/hashcash/>

-- 
 "Stop blowing holes in my ship!"                             Adam Sjøgren
                                                         asjo@koldfront.dk




  parent reply	other threads:[~2004-09-27 14:45 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-26 15:30 hashcash Adam Sjøgren
2004-09-26 17:36 ` hashcash Simon Josefsson
2004-09-26 20:59   ` hashcash Adam Sjøgren
2004-09-27  2:03     ` hashcash Paul Foley
2004-09-27 14:32       ` hashcash Simon Josefsson
2004-09-27 14:46         ` hashcash Adam Sjøgren
2004-09-29 14:37         ` hashcash Dan Christensen
2004-09-29 14:40           ` hashcash Ted Zlatanov
2004-09-29 19:11             ` hashcash Dan Christensen
2004-09-29 21:08               ` hashcash Magnus Henoch
2004-09-30 14:30                 ` hashcash Ted Zlatanov
2004-09-30 20:42                   ` hashcash Magnus Henoch
2004-09-27 14:45       ` Adam Sjøgren [this message]
2004-09-27 15:21         ` hashcash Simon Josefsson
2004-09-27 15:38           ` hashcash Adam Sjøgren
2004-09-27 17:13             ` hashcash Jesper Harder
2004-09-27 19:02               ` hashcash Adam Sjøgren
2004-09-27 19:38                 ` hashcash Simon Josefsson
2004-09-27 19:54                   ` hashcash Adam Sjøgren
2004-09-27 19:56                   ` hashcash Jesper Harder
2004-09-27 20:50                     ` hashcash Simon Josefsson
2004-09-28 14:08         ` hashcash Ted Zlatanov
2004-09-28 14:49           ` hashcash Simon Josefsson
2004-09-28 17:41             ` hashcash Ted Zlatanov
2004-09-30 20:50               ` hashcash Simon Josefsson
2004-10-04 17:06                 ` hashcash Ted Zlatanov
2004-10-04 19:36                   ` hashcash Simon Josefsson
2004-10-05  2:34                     ` hashcash Dan Christensen
2004-10-06 15:17                     ` hashcash Ted Zlatanov
2004-09-27 16:10 ` hashcash Ted Zlatanov
  -- strict thread matches above, loose matches on Subject: below --
2002-07-31 19:24 new spam functionality added Ted Zlatanov
2002-07-31 20:14 ` Simon Josefsson
2002-07-31 20:25   ` Josh Huber
2002-07-31 20:34     ` Scott A Crosby
2002-07-31 20:41       ` Josh Huber
2002-07-31 21:07         ` Scott A Crosby
2002-08-02  2:05           ` Jason R. Mastaler
2002-08-02  3:43             ` Russ Allbery
2002-08-02  4:29               ` Jason R. Mastaler
2002-08-02  4:34                 ` Russ Allbery
2002-08-02 16:17                   ` TMDA (was: new spam functionality added) Paul Jarc
2002-08-05 17:38                     ` Per Abrahamsen
2002-08-05 17:49                       ` Paul Jarc
2002-08-05 17:57                         ` Simon Josefsson
2002-08-05 20:18                           ` David Masterson
2002-08-05 20:46                             ` Stainless Steel Rat
2002-08-06  3:04                               ` David Masterson
2002-08-06 14:27                                 ` Stainless Steel Rat
2002-08-06 17:13                                   ` David Masterson
2002-08-06 17:26                                     ` David Masterson
2002-08-06 18:08                                       ` Stainless Steel Rat
2002-08-07 12:02                                         ` Lloyd Zusman
2002-12-30  0:22                                           ` Hashcash (was: TMDA) Lars Magne Ingebrigtsen
2003-01-02 18:33                                             ` Hashcash Simon Josefsson
2003-01-02 19:25                                               ` Hashcash Lars Magne Ingebrigtsen
2003-01-02 21:01                                                 ` Hashcash Simon Josefsson
2003-01-02 21:05                                                   ` Hashcash Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oejrn52o.fsf@koldfront.dk \
    --to=asjo@koldfront.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).