Andrew W. Nosenko [EMAIL PROTECTED] wrote on Tue, 30 May 2000:
Right answer is:
^(~L alice)|(~L bob)|(~L carol)
Doesn't this mean that the ^ operator is only applied to the first of
the patterns, not the 2 that follow? I guess it's a question of
precedence, but I would've expected it to
On Sun, May 28, 2000 at 10:33:52PM -0400, David T-G wrote:
% Ah, I see. It's ^~L "(alice|bob|carol)". Precedence would be a good
% topic for the manual to go over quickly.
I think most Unix users (after struggling with bash, grep, etc.) develop
a feeling on where and how and what to quote.
Marius, et al --
...and then Marius Gedminas said...
% On Sun, May 28, 2000 at 10:33:52PM -0400, David T-G wrote:
% % Ah, I see. It's ^~L "(alice|bob|carol)". Precedence would be a good
% % topic for the manual to go over quickly.
%
% I think most Unix users (after struggling with bash,
Mikko Hanninen wrote:
: I didn't look into this deeply, but just to throw an idea out --
: did you try something like:
:
: ^~L (alice|bob|carol)
Right answer is:
^(~L alice)|(~L bob)|(~L carol)
--
Andrew W. Nosenko([EMAIL PROTECTED])
Hi, folks --
...and then David Champion said...
%
% Well, it does, but it parses from "top down" -- it takes the whole
% string first, and then splits it up to expressions. | can be "or",
% so it splits it at that. It doesn't look at the context.
%
% You can avoid it by quoting it, like
David Champion [EMAIL PROTECTED] wrote on Thu, 25 May 2000:
OK. I didn't need to escape the parens at all, just the pipes. This
expression is exactly what I'm looking for:
~L alice ~L bob ~L carol ^~L (alice\|bob\|carol)
I'm curious, do you really need the first part, the three
On 2000.05.25, in [EMAIL PROTECTED],
"Mikko Hänninen" [EMAIL PROTECTED] wrote:
~L alice ~L bob ~L carol ^~L (alice\|bob\|carol)
I'm curious, do you really need the first part, the three matches?
The last part should do their job too. Since you tried these things,
I suppose you
Alice, Bob, and Carol want to find all email that was sent from any one
of them to BOTH of the others, but that was not sent to ANY fourth
person.
I can make mutt match all messages that include Alice, Bob, and Carol:
~L alice ~L bob ~L carol
My mailbox has a message from Carol to Alice,
On 2000.05.24, in [EMAIL PROTECTED],
"David Champion" [EMAIL PROTECTED] wrote:
I attached a mailbox that contains 8
messages: 6 that I want matched, 1 that is from Carol to Alice, Bob,
and Dave, and 1 that does not include Bob. (The last two should not be
matched.)
Oops. *Now* I
On 2000.05.24, in [EMAIL PROTECTED],
"David Champion" [EMAIL PROTECTED] wrote:
A look at the source code suggests that this is a misread, though, and
that "^" goes before any pattern component. Well, this pattern:
^~L alice | ^~L bob | ^~L carol
doesn't match anything at all.
10 matches
Mail list logo