+2002-06-26 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * contrib/hashcash.el: Require `cl' when compiling.
+ (hashcash-strip-quoted-names): Replace `subseq' with `substring'.
+
2002-06-25 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
* lisp/gnus-namazu.el (gnus-namazu/truncate-article-list): When
;;; hashcash.el --- Add hashcash payments to email
-;; $Revision: 1.1.2.1 $
+;; $Revision: 1.1.2.2 $
;; Copyright (C) 1997,2001 Paul E. Foley
;; Maintainer: Paul Foley <mycroft@actrix.gen.nz>
;;; Code:
+(eval-when-compile (require 'cl))
+
(defcustom hashcash-default-payment 0
"*The default number of bits to pay to unknown users.
If this is zero, no payment header will be generated.
(defun hashcash-strip-quoted-names (addr)
(setq addr (mail-strip-quoted-names addr))
(if (and addr (string-match "^[^+@]+\\(\\+[^@]*\\)@" addr))
- (concat (subseq addr 0 (match-beginning 1)) (subseq addr (match-end 1)))
+ (concat (substring addr 0 (match-beginning 1))
+ (substring addr (match-end 1)))
addr))
(defun hashcash-payment-required (addr)