Gnus development mailing list
 help / color / mirror / Atom feed
From: Kan-Ru Chen <kanru@kanru.info>
To: ding@gnus.org
Subject: Re: Fancy Mail Splitting documentation needs improved?
Date: Sun, 09 Jan 2011 21:00:51 +0800	[thread overview]
Message-ID: <878vyuqlj0.fsf@anar.kanru.info> (raw)
In-Reply-To: <m3vd27dcai.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Sun, 02 Jan 2011 07:56:05 +0100")

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Kan-Ru Chen <kanru@kanru.info> writes:
>>
>> OK, the difference is that with `|' and `&' you have to specify the
>> target SPLIT for every rule.  What in my mind is something like
>> programmable rules.  Ideally it would look like:
>> (if (or (field-match "list-id" "...")
>>         (field-match "list-id" "..."))
>>     (split "mail.list"))
>> Of course this could be done via the `:' operator, but will loose the
>> benefits from field cache.  What to do? I'm pondering...
>
> I'm probably misunderstanding something here, but `|' and `&' in the
> splitting rules (should) work just the same as `or' and `and' in Lisp:
>
> (or 'foo 'bar 'zot)
> => foo
>
> (and nil nil 'foo)
> => nil

So something that analog to `cond' would be very useful.  Multiple
condition that leads to one destination.

- Kanru



  reply	other threads:[~2011-01-09 13:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-19 18:02 Tommy Kelly
2010-12-20  9:28 ` Kan-Ru Chen
2010-12-20 17:11   ` Lars Magne Ingebrigtsen
2010-12-21  3:36     ` Kan-Ru Chen
2011-01-02  6:56       ` Lars Magne Ingebrigtsen
2011-01-09 13:00         ` Kan-Ru Chen [this message]
2011-01-09 13:27           ` Andreas Schwab
2011-01-09 15:10             ` Kan-Ru Chen
2011-01-11 18:58               ` Lars Magne Ingebrigtsen
2010-12-20 17:16 ` Lars Magne Ingebrigtsen
2010-12-20 17:53   ` Tommy Kelly
2010-12-20 17:56     ` Lars Magne Ingebrigtsen

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=878vyuqlj0.fsf@anar.kanru.info \
    --to=kanru@kanru.info \
    --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).