From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64387 Path: news.gmane.org!not-for-mail From: Andreas Seltenreich Newsgroups: gmane.emacs.gnus.general Subject: Re: Unnecessary hashcash computations Date: Thu, 08 Mar 2007 22:54:14 +0100 Message-ID: <87bqj3s8op.fsf@gate450.dyndns.org> References: <87bqjv8whn.fsf@obelix.mork.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1173390932 8090 80.91.229.12 (8 Mar 2007 21:55:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2007 21:55:32 +0000 (UTC) Cc: ding@gnus.org To: =?iso-8859-1?Q?Bj=F8rn?= Mork Original-X-From: ding-owner+M12911@lists.math.uh.edu Thu Mar 08 22:55:25 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPQa2-0007IJ-T5 for ding-account@gmane.org; Thu, 08 Mar 2007 22:55:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1HPQZ9-0007Be-Bm; Thu, 08 Mar 2007 15:54:27 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HPQZ7-0007BK-Ro for ding@lists.math.uh.edu; Thu, 08 Mar 2007 15:54:25 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1HPQZ2-0003wh-1K for ding@lists.math.uh.edu; Thu, 08 Mar 2007 15:54:25 -0600 Original-Received: from smtp1.rz.uni-karlsruhe.de ([129.13.185.217] ident=Debian-exim) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HPQZ0-0004VX-00 for ; Thu, 08 Mar 2007 22:54:18 +0100 Original-Received: from rzstud3.stud.uni-karlsruhe.de (rzstud3.stud.uni-karlsruhe.de [193.196.41.39]) by smtp1.rz.uni-karlsruhe.de with esmtp (Exim 4.63 #1) id 1HPQYy-00055J-0J; Thu, 08 Mar 2007 22:54:16 +0100 Original-Received: from uwi7 by rzstud3.stud.uni-karlsruhe.de with local (Exim 4.43) id 1HPQYx-000661-O7; Thu, 08 Mar 2007 22:54:15 +0100 X-Now-Playing: Katatonia =?utf-8?Q?=E2=99=AA?= Brave Murder Day =?utf-8?Q?=E2=99=AA?= Brave X-Hashcash: 1:24:070308:bmork@dod.no::0AgyQbu3D/RzxDUc:No4m X-Hashcash: 1:24:070308:ding@gnus.org::c0RxJDzYgawjLsm9:viV8 In-Reply-To: <87bqjv8whn.fsf@obelix.mork.no> (=?iso-8859-1?Q?Bj=F8rn?= Mork's message of "Thu\, 15 Feb 2007 12\:56\:52 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64387 Archived-At: --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Bjørn Mork writes: > Does anyone see how this could be avoided, still keeping the async > computation? If we at the same time could get async hashcash > computation for new recepients, then that would of course be even > better. I don't have a solution for the former, but I have the following in my .gnus.el to take care of the latter: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline (defun my-message-goto-body-and-possibly-add-payment-async (n) (interactive "P") (when message-generate-hashcash (mail-add-payment-async n)) (message-goto-body)) (eval-after-load 'message '(define-key message-mode-map "\C-c\C-b" 'my-message-goto-body-and-possibly-add-payment-async)) --=-=-= Content-Disposition: inline However, I'm not sure what the canonical way to integrate this into Gnus would be. Introducing a message-goto-body-hook might be more general, but this wouldn't allow for the prefix arg to be specified. regards, andreas --=-=-=--