From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62429 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: hashcash: duplicate payments Date: Wed, 29 Mar 2006 09:49:03 +0200 Message-ID: <87ek0lu1w0.fsf@latte.josefsson.org> References: <87veu1hz2u.fsf@gate450.dyndns.org> <87r74p561l.fsf@gate450.dyndns.org> <87d5g88bpk.fsf@latte.josefsson.org> <87odzp997q.fsf@gate450.dyndns.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1143618759 14358 80.91.229.2 (29 Mar 2006 07:52:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Mar 2006 07:52:39 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m10956@lists.math.uh.edu Wed Mar 29 09:52:38 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FOVTd-0002NS-LB for ding-account@gmane.org; Wed, 29 Mar 2006 09:52:26 +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 1FOVTW-0005Zz-00; Wed, 29 Mar 2006 01:52:18 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FOVQa-0005Zt-00 for ding@lists.math.uh.edu; Wed, 29 Mar 2006 01:49:16 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FOVQY-0005OB-Ua for ding@lists.math.uh.edu; Wed, 29 Mar 2006 01:49:16 -0600 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FOVQX-0007cw-00 for ; Wed, 29 Mar 2006 09:49:13 +0200 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k2T7n44W002749; Wed, 29 Mar 2006 09:49:05 +0200 Original-To: Andreas Seltenreich OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:060329:ding@gnus.org::HpQ2CGJx8eWEEOkf:2g2R X-Hashcash: 1:21:060329:andreas@gate450.dyndns.org::NwSRsC3MBEqJRoji:1BnV In-Reply-To: <87odzp997q.fsf@gate450.dyndns.org> (Andreas Seltenreich's message of "Wed, 29 Mar 2006 06:16:25 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on yxa-iv X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on yxa.extundo.com X-Virus-Status: Clean X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62429 Archived-At: Andreas Seltenreich writes: > Simon Josefsson schrob: > >> Andreas Seltenreich writes: >> >>> Apparently, the hashcash code is also run on temporary buffers during >>> resending. Is binding message-generate-hashcash at those places an >>> acceptable solution? >> >> It seems slightly out of place, but I can't think of a better >> solution, so I installed it. > > Yeah, I had an uneasy feeling when I first saw that the hashcash stuff > was hardcoded into message.el, too. And it went even uneasier now > that I realised that the draft code also uses scratch message buffers. > > It does bind the message hooks to nil when it does this, as does the > resend code. So I'm wondering if it wouldn't be more appropriate to > resort to using hooks for hashcash.el, which would IMHO result in a > more deterministic behaviour. That seems better, yes. Would you like to work on it?