From: asjo@koldfront.dk (Adam Sjøgren)
Subject: Re: hashcash
Date: Mon, 27 Sep 2004 21:02:04 +0200 [thread overview]
Message-ID: <87oejr358z.fsf@koldfront.dk> (raw)
In-Reply-To: <m31xgn63f8.fsf@defun.localdomain>
On Mon, 27 Sep 2004 19:13:15 +0200, Jesper wrote:
> It's `replace-regexp-in-string' in Emacs¹ -- you can use
> `gnus-replace-in-string' as a compatibility function which works in
> both flavours.
Ah, thanks.
I couldn't work out how to incorporate trailing-slash-removal in
hashcash-token-substring, so I did this (questionable?) thing instead:
(defun hashcash-token-substring ()
+ (gnus-replace-in-string (hashcash-token-substring-unfold) " +$" ""))
+
+(defun hashcash-token-substring-unfold ()
(save-excursion
(let ((token ""))
(loop
(setq token
(concat token (buffer-substring (point) (hashcash-point-at-eol))))
(goto-char (hashcash-point-at-eol))
(forward-char 1)
(unless (looking-at "[ \t]") (return token))
(while (looking-at "[ \t]") (forward-char 1))))))
Thanks for the input,
--
"Och jag säger som Jennifer Lopez: Utan mina pärmar Adam Sjøgren
hade det blivit oordning!" asjo@koldfront.dk
next prev parent reply other threads:[~2004-09-27 19:02 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 ` hashcash Adam Sjøgren
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 ` Adam Sjøgren [this message]
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=87oejr358z.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).