Gnus development mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Tommy Kelly <tommy.kelly@verilab.com>
Cc: ding@gnus.org
Subject: Re: nnimap-split-methods syntax
Date: Tue, 07 Dec 2010 00:08:56 +0100	[thread overview]
Message-ID: <m2lj42v6rb.fsf@igel.home> (raw)
In-Reply-To: <m2k4jmr4en.fsf@verilab.com> (Tommy Kelly's message of "Mon, 06 Dec 2010 21:13:20 +0000")

Tommy Kelly <tommy.kelly@verilab.com> writes:

> Yeah, clearly (having begun reading regexp stuff) this is bonkers. I tried:
>
> ("0_to-me" "^From:.*verilab.com.*^To:.*tommy.kelly@verilab.com")
>
> But I then learned that "." doesn't match LF or CR.

You can use "\\(.\\|\n\\)" to match really everything.  But another
problem with the regexp is that ^ is only special at the beginning of a
(sub-)regexp (use "\n" to match newline in the middle).

> For example, is there a way of "nesting" the split methods the way I
> could do in a sieve script?

Try out fancy splitting.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



  reply	other threads:[~2010-12-06 23:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06 19:02 Tommy Kelly
2010-12-06 21:13 ` Tommy Kelly
2010-12-06 23:08   ` Andreas Schwab [this message]
2010-12-07 19:38     ` Tommy Kelly
2010-12-07 20:49       ` Andreas Schwab
2010-12-07 21:36         ` Tommy Kelly
2010-12-08 18:13           ` Alberto Luaces

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=m2lj42v6rb.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=ding@gnus.org \
    --cc=tommy.kelly@verilab.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).