Gnus development mailing list
 help / color / mirror / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: michael.zombok@googlemail.com
Cc: ding@gnus.org
Subject: Re: Fancy-Split / Regexp question
Date: Mon, 06 Feb 2012 15:08:56 +0100	[thread overview]
Message-ID: <877h00vytj.fsf@tsdh.uni-koblenz.de> (raw)
In-Reply-To: <souwr80a1iv.fsf@gmx.de> (michael zombok's message of "Mon, 06 Feb 2012 08:01:28 +0100")

michael.zombok@googlemail.com writes:

Hi Michael,

> I am trying hard to setup a fancy-splitting-rule for a mailing list.
> The 'tag' in the subject header of the mails I want to catch is
> '[ab-cd-ef]' (including the braces) but I don't get it. I tried
> various versions without success. What is the correct syntax?
>
> (any ".*\\[ab-cd-ef\\].*" "news.ab-cd-ef")

Syntactically, this regex is correct, i.e., it matches only the string
containing "[ab-cd-ef]".  You can omit the two ".*", though.

I think, the problem is the `any'.  If I remember correctly, that's a
shorthand for To, From, Cc, Bcc, but not Subject.  So probably you want
a rule like that:

  ("subject" "\\[ab-cd-ef\\]" "news.ab-cd-ef")

Bye,
Tassilo

BTW: If that's a mailing list, it's probably better to use the List-Id
header for splitting.



  reply	other threads:[~2012-02-06 14:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-06  7:01 michael.zombok
2012-02-06 14:08 ` Tassilo Horn [this message]
2012-02-06 15:29   ` Andreas Schwab
2012-02-07  6:20     ` Basil Abou El-Komboz
2012-02-07 15:39   ` Ted Zlatanov
2012-02-07 20:34     ` Lars Ingebrigtsen
2012-02-07 22:34       ` Ted Zlatanov
2012-02-08  8:23         ` Tassilo Horn
2012-02-11 16:26           ` Daniel Dehennin
2012-02-13 17:18             ` Ted Zlatanov

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=877h00vytj.fsf@tsdh.uni-koblenz.de \
    --to=tassilo@member.fsf.org \
    --cc=ding@gnus.org \
    --cc=michael.zombok@googlemail.com \
    /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).