From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58609 Path: main.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: hashcash Date: Mon, 27 Sep 2004 16:45:35 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Sender: ding-owner@lists.math.uh.edu Message-ID: <87oejrn52o.fsf@koldfront.dk> References: <87d609jbd9.fsf@koldfront.dk> <87mzzcu4pk.fsf@koldfront.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1096296382 29001 80.91.229.6 (27 Sep 2004 14:46:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2004 14:46:22 +0000 (UTC) Original-X-From: ding-owner+M7147@lists.math.uh.edu Mon Sep 27 16:46:00 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CBwlM-0005kY-00 for ; Mon, 27 Sep 2004 16:46:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CBwlG-0000qc-00; Mon, 27 Sep 2004 09:45:54 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CBwl5-0000pK-00 for ding@lists.math.uh.edu; Mon, 27 Sep 2004 09:45:43 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CBwl3-0003gl-EA for ding@lists.math.uh.edu; Mon, 27 Sep 2004 09:45:41 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by justine.libertine.org (Postfix) with ESMTP id 066E13A004F for ; Mon, 27 Sep 2004 09:45:39 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CBwl0-0007R8-00 for ; Mon, 27 Sep 2004 16:45:38 +0200 Original-Received: from 0x50a5b872.bynxx12.adsl-dhcp.tele.dk ([80.165.184.114]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Sep 2004 16:45:38 +0200 Original-Received: from asjo by 0x50a5b872.bynxx12.adsl-dhcp.tele.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Sep 2004 16:45:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 51 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 0x50a5b872.bynxx12.adsl-dhcp.tele.dk X-Face: &DfBw60^ZxI8hd?J%t&_8wW?SLF%BBx<2XQ+sXYpX!?{=0C?9D{Nc`;Eq<0d=-L User-Agent: Gnus/5.110003 (No Gnus v0.3) XEmacs/21.4 (Security Through Obscurity, linux) Cancel-Lock: sha1:odiQns9bj4PcAUrEVe64XpEfXss= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58609 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58609 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"=B9 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-su= bstring) " " "")))) (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 =B9 --=20 "Stop blowing holes in my ship!" Adam Sj=F8gren asjo@koldfront.dk