From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: gnus-summary-limit-to-recipient and
Date: Fri, 03 Dec 2004 17:02:52 +0100 [thread overview]
Message-ID: <v9d5xr9xoz.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <v9vfbkjp5q.fsf@marauder.physik.uni-ulm.de>
On Thu, Dec 02 2004, Reiner Steib wrote:
> I have added new user commands `gnus-summary-limit-to-recipient' and
> `gnus-summary-sort-by-recipient' that have been requested by users in
> g.e.g. Please test.
I have implemented the missing `not-matching' option:
,----[ C-h f gnus-summary-limit-to-recipient RET ]
| gnus-summary-limit-to-recipient is an interactive Lisp function in `gnus-sum'.
| (gnus-summary-limit-to-recipient RECIPIENT &optional NOT-MATCHING)
|
| Limit the summary buffer to articles with the given RECIPIENT.
|
| To and Cc headers are checked. You need to include them in
| `nnmail-extra-headers'.
`----
An elisp question related to this: Give two lists of number, `to' and
`cc'. What is the best way to get a list of all numbers that are
present in both lists?
Example:
to -> (173 175 177 178 180 181 182 183 184)
cc -> (173 174 175 176 177 178 179 180 181 182 183 184)
goal: (173 175 177 178 180 181 182 183 184)
I have done it as follows (the "not-matching"-part), but maybe I was
missing a more simple solution:
(let* ((to ...) ; list of numbers
(cc ...) ; list of numbers
(articles
(if not-matching
;; We need the numbers that are in both lists:
(mapcar (lambda (a)
(and (memq a to) a))
cc)
(nconc to cc))))
...)
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next prev parent reply other threads:[~2004-12-03 16:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-02 22:44 gnus-summary-limit-to-recipient and gnus-summary-sort-by-recipient Reiner Steib
2004-12-03 0:05 ` Tassilo Horn
2005-09-07 16:17 ` Reiner Steib
2004-12-03 7:36 ` Romain Francoise
2004-12-03 8:49 ` gnus-summary-limit-to-recipient and Reiner Steib
2004-12-03 11:10 ` Romain Francoise
2004-12-03 16:02 ` Reiner Steib [this message]
2004-12-04 21:30 ` Karl Pflästerer
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=v9d5xr9xoz.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
/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).