Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: hashcash: duplicate payments
Date: Mon, 27 Mar 2006 11:40:14 +0200	[thread overview]
Message-ID: <87hd5k8bup.fsf@latte.josefsson.org> (raw)
In-Reply-To: <87veu1hz2u.fsf@gate450.dyndns.org> (Andreas Seltenreich's message of "Sun, 26 Mar 2006 19:53:45 +0200")

Andreas Seltenreich <andreas+ding@gate450.dyndns.org> writes:

> Hi,
>
> I just noticed that mail-add-payment (called from message-send-message)
> doesn't recognise asynchronously generated payments for addresses that
> contain uppercase characters. Attached is a patch that makes the test
> case-insensitive.
>
> An alternative solution would be to supply the "-C" option to the
> external hashcash program, but IMHO this would unnecessarily restrict
> the user in his customisation needs (hashcash-extra-generate-parameters).
>
> Thanks,
> andreas
>
> 2006-03-26  Andreas Seltenreich  <uwi7@rz.uni-karlsruhe.de>
>
> 	* hashcash.el (hashcash-already-paid-p): Bind case-fold-search
> 	when searching for already-paid recipients.

Applied, thanks!

> Index: hashcash.el
> ===================================================================
> RCS file: /usr/local/cvsroot/gnus/lisp/hashcash.el,v
> retrieving revision 7.14
> diff -c -r7.14 hashcash.el
> *** hashcash.el	6 Jul 2005 06:42:01 -0000	7.14
> --- hashcash.el	26 Mar 2006 16:49:17 -0000
> ***************
> *** 210,216 ****
>     (save-excursion
>       (save-restriction
>         (message-narrow-to-headers-or-head)
> !       (let ((token (message-fetch-field "x-hashcash")))
>   	(and (stringp token)
>   	     (string-match (regexp-quote recipient) token))))))
>   
> --- 210,217 ----
>     (save-excursion
>       (save-restriction
>         (message-narrow-to-headers-or-head)
> !       (let ((token (message-fetch-field "x-hashcash"))
> ! 	    (case-fold-search t))
>   	(and (stringp token)
>   	     (string-match (regexp-quote recipient) token))))))
>   



      parent reply	other threads:[~2006-03-27  9:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-26 17:53 Andreas Seltenreich
2006-03-26 20:01 ` Andreas Seltenreich
2006-03-27  9:43   ` Simon Josefsson
2006-03-29  4:16     ` Andreas Seltenreich
2006-03-29  7:49       ` Simon Josefsson
2006-03-27  9:40 ` Simon Josefsson [this message]

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=87hd5k8bup.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=ding@gnus.org \
    /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).