Gnus development mailing list
 help / color / mirror / Atom feed
From: Daniel Pittman <daniel@rimspace.net>
Subject: Re: cl in message.el, etc
Date: Sun, 21 Apr 2002 02:03:45 +1000	[thread overview]
Message-ID: <87vgamjr1a.fsf@inanna.rimspace.net> (raw)
In-Reply-To: <87r8la8ks2.fsf@alum.wpi.edu> (Josh Huber's message of "Sat, 20 Apr 2002 11:14:21 -0400")

On Sat, 20 Apr 2002, Josh Huber wrote:
> BTW, thanks for the help ;)

It would have been more helpful if it was right. ;)

> Daniel Pittman <daniel@rimspace.net> writes:
> 
>> (loop for regexp in mft-regexps and recipient in recipients
>>       when (string-match regexp recipient) return recipient)
> 
> I actually tried this at one point, but it didn't work for me, and
> doesn't work in the message code.  Perhaps you could explain this to
> me?

I screwed up in my thinking about the problem space and, as a result,
gave you something that works if and only if (= (length mft-regexps)
(length recipients)).

You want the first entry in recipients that matched any regexp in
mft-regexps, right?

(loop for recipient in recipients
      when (loop for regexp in mft-regexps
                 when (string-match regexp recipient)
                      return t)
           return recipient)

[...]

> I must be missing something pretty major ;)

Well, /one/ of us did. ;)
        Daniel

-- 
Every artist knows that he is engaged in an encounter with infinity, and that
work done with heart and hand is ultimately worship of life itself.
        -- Bernard Leach



  reply	other threads:[~2002-04-20 16:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-19 21:41 Josh Huber
2002-04-19 22:13 ` Josh Huber
2002-04-20  3:43 ` Daniel Pittman
2002-04-20 15:14   ` Josh Huber
2002-04-20 16:03     ` Daniel Pittman [this message]
2002-04-20 17:34       ` Josh Huber
2002-04-21  2:28         ` Daniel Pittman
2002-04-22  8:18   ` Kai Großjohann

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=87vgamjr1a.fsf@inanna.rimspace.net \
    --to=daniel@rimspace.net \
    /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).