Gnus development mailing list
 help / color / mirror / Atom feed
From: Daniel Dehennin <daniel.dehennin@baby-gnu.org>
To: ding@gnus.org
Subject: Re: [PATCH] Re: Group splitting on list headers
Date: Sun, 29 Dec 2013 01:25:05 +0100	[thread overview]
Message-ID: <87k3eomrku.fsf@hati.baby-gnu.org> (raw)
In-Reply-To: <8738leffqx.fsf_-_@hati.baby-gnu.org> (Daniel Dehennin's message of "Fri, 27 Dec 2013 16:57:58 +0100")

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

Daniel Dehennin <daniel.dehennin@baby-gnu.org> writes:

> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> Uhm...  perhaps `match-list'?
>
> Shortest is best ;-)
>
> You can review my proposal patch on my gitweb[1] or with the following
> pull request.

Matching “extra-aliases” against list headers is not very useful in my
use-case as I set it “admin-address” to group management mails in the same
group as the mailing-list.

It looks to be more useful by generating a split like the following:

#+begin_src emacs-lisp
(| (list (regexp-opt (list to-address to-list)) group)
   (any (regexp-opt (if (listp extra-aliases)
			extra-aliases
		      (list extra-aliases))) group))
#+end_src

I think we could use the “match-list” with several values:

- nil: match “to-address”, “to-list” and “extra-aliases” against 'any
  abbreviation
  
- t: match “to-address” and “to-list” against 'list abbreviation and
  “extra-aliases” against 'any

- 'with-extra-aliases: match “to-address”, “to-list” and “extra-aliases”
  against 'list abbreviation

To reduce complexity in “gnus-group-split-fancy” a new helper to build
the SPLIT should be added.

Any comment?

Regards.

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF

[-- Attachment #2: Type: application/pgp-signature, Size: 229 bytes --]

      parent reply	other threads:[~2013-12-29  0:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-14 17:03 Daniel Dehennin
2013-12-26 15:47 ` Lars Ingebrigtsen
2013-12-26 16:58   ` Daniel Dehennin
2013-12-26 16:59     ` Lars Ingebrigtsen
2013-12-27 15:57       ` [PATCH] " Daniel Dehennin
2013-12-28  1:53         ` Daniel Dehennin
2013-12-29  0:25         ` Daniel Dehennin [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=87k3eomrku.fsf@hati.baby-gnu.org \
    --to=daniel.dehennin@baby-gnu.org \
    --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).