Gnus development mailing list
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
Subject: Split mail on two headers
Date: 07 Apr 1998 11:30:28 -0700	[thread overview]
Message-ID: <m3emz9trgb.fsf@org.com> (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


             reply	other threads:[~1998-04-07 18:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-07 18:30 Harry Putnam [this message]
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

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=m3emz9trgb.fsf@org.com \
    --to=reader@newsguy.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).