Re: Exclusive matching

2000-05-30 Thread Mikko Hänninen
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

Re: Exclusive matching

2000-05-29 Thread Marius Gedminas
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.

Re: Exclusive matching

2000-05-29 Thread David T-G
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,

Re: Exclusive matching

2000-05-29 Thread Andrew W. Nosenko
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])

Re: Exclusive matching

2000-05-28 Thread David T-G
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

Re: Exclusive matching

2000-05-25 Thread Mikko Hänninen
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

Re: Exclusive matching

2000-05-25 Thread David Champion
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

Exclusive matching

2000-05-24 Thread David Champion
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,

Re: Exclusive matching

2000-05-24 Thread David Champion
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

Re: Exclusive matching

2000-05-24 Thread David Champion
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.