Gnus development mailing list
 help / color / mirror / Atom feed
* Split mail on two headers
@ 1998-04-07 18:30 Harry Putnam
  1998-04-07 19:35 ` Colin Rafferty
  0 siblings, 1 reply; 15+ messages in thread
From: Harry Putnam @ 1998-04-07 18:30 UTC (permalink / raw)



Probably should be using 'fancy-splitting' but have tried to read it
several times, and it is just to complicated for my level of
experience. (A 'correct'  way of saying: I couldn't make heads or tails
of it)


I want to see a regexp capable of splitting a message on both 'From' and
'To' headers.  In other words some way to match on more than one line.

Something like this seems it should work to split Joes' mail to me into
'Box' and let his mail to <whatever> go in a different direction, but
does not.

("Box" "From:.*Joe Blow\\(.\\|\n\\)*To:.*reader")

Either one works by itself, but not together.

Trying to tell the search engine to match "From: Joe Blow" then scan any
number of characters or newlines to match "To: <anything> reader"

Is this annotation "\n" the proper one in this instance?

Apparently this regexp engine searches like so:
         
jfjjjfjjj----------------\     "head"  
fjjfjjjf                     --all hearder lines
kfjfjjfjf                    <==Engine searches hear
kkfkfkfkf________________/

jfjfjfjfj----------------\
jfjfjfjf                     -- body 
jfjjjjj__________________/   <==not here


So can it be made to match on more than one line in the 'head'?
Or, even more complicated, can it be made to match on a string in the
body? (might be fun to play with)

-- 

Harry Putnam  reader@newsguy.com


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~1998-04-09 13:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-07 18:30 Split mail on two headers Harry Putnam
1998-04-07 19:35 ` Colin Rafferty
1998-04-07 22:35   ` Harry Putnam
1998-04-07 23:24     ` Ken Raeburn
1998-04-08  1:06       ` Harry Putnam
1998-04-08  1:40       ` Harry Putnam
1998-04-08  2:22     ` Justin Sheehy
1998-04-08  8:59       ` Harry
1998-04-08  9:09         ` Hrvoje Niksic
1998-04-08 15:41           ` Harry Putnam
1998-04-09 13:37             ` Hrvoje Niksic
1998-04-09  3:36           ` Harry Putnam
1998-04-08  9:37         ` Kai Grossjohann
1998-04-08  9:44           ` Hrvoje Niksic
1998-04-08 10:15             ` Kai Grossjohann

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).