Gnus development mailing list
 help / color / mirror / Atom feed
From: Josh Huber <huber@alum.wpi.edu>
Subject: Re: repeated addresses in message-subscribed-regexps.
Date: Mon, 17 Jun 2002 10:37:45 -0400	[thread overview]
Message-ID: <871yb6ezt2.fsf@alum.wpi.edu> (raw)
In-Reply-To: <hhhek4gf80.fsf@blah.pl>

Maciej Matysiak <phoner.ding@blah.pl> writes:

> in fact, i use gnus-parameters for several groups and
> message-subscribed-regexps is, uh, huge. it could be much much
> smaller without any loss.

How about using add-to-list instead of push?

Index: gnus.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus.el,v
retrieving revision 6.113
diff -u -r6.113 gnus.el
--- gnus.el	2002/05/29 13:25:55	6.113
+++ gnus.el	2002/06/17 15:01:24
@@ -2425,7 +2425,7 @@
 		       (or (gnus-group-fast-parameter group 'to-address)
 			   (gnus-group-fast-parameter group 'to-list))))
 	(when address
-	  (push address addresses))))
+	  (add-to-list 'addresses address))))
     (when addresses
       (list (mapconcat 'regexp-quote addresses "\\|")))))
 

This works in my setup, but I don't have any duplicate
to-(list|address) values.

-- 
Josh Huber



      reply	other threads:[~2002-06-17 14:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-16  1:54 Maciej Matysiak
2002-06-17 14:37 ` Josh Huber [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=871yb6ezt2.fsf@alum.wpi.edu \
    --to=huber@alum.wpi.edu \
    /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).