From: Tommy Kelly <tommy.kelly@verilab.com>
To: ding@gnus.org
Subject: Re: nnimap-split-methods syntax
Date: Mon, 06 Dec 2010 21:13:20 +0000 [thread overview]
Message-ID: <m2k4jmr4en.fsf@verilab.com> (raw)
In-Reply-To: <m28w022082.fsf@verilab.com>
Tommy Kelly <tommy.kelly@verilab.com> writes:
> ("0_to-me" "^From:.*verilab.com\\&^To:.*tommy.kelly@verilab.com")
> ...
> Have I written it wrong?
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. So presumably the regexp
itself isn't the way to go, since I can't be sure how many CR or LF
characters lie between the From and the To. (In fact, can I even know
that the From precedes the To?)
So what would be a good way if doing this kind of ANDed split method?
For example, is there a way of "nesting" the split methods the way I
could do in a sieve script?
Tommy
next prev parent reply other threads:[~2010-12-06 21:13 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 [this message]
2010-12-06 23:08 ` Andreas Schwab
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=m2k4jmr4en.fsf@verilab.com \
--to=tommy.kelly@verilab.com \
--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).