Gnus development mailing list
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
Subject: Re: Split mail on two headers
Date: 07 Apr 1998 18:06:17 -0700	[thread overview]
Message-ID: <m3d8et9l6e.fsf@org.com> (raw)
In-Reply-To: Ken Raeburn's message of "07 Apr 1998 19:24:16 -0400"

Ken Raeburn <raeburn@cygnus.com> writes:

> Harry Putnam <reader@newsguy.com> writes:
> 
> > Colin Rafferty <craffert@ml.com> writes:
> > > `from' and `mail' are predefined regexp's that match the "From:" field 
> > > and the mailer-daemon sender, respectively.
> > 
> > When you say "predefined" do you mean in emacs or gnus *.el files
> > somewhere or do you mean that you have it 'predefined" somewhere?
> > Runing 'eval-region' or  'eval-last-sexp' just says 
> > "Symbol function definition is void: from"

Ken:
 
> There's a customizable assoc list nnmail-split-abbrev-alist which is
> checked if a symbol is found rather than a string.  See nnmail.el.

Not sure I see what you are refering to above.  If you feel like
explaining any further, use the kind of language you would use to
address a 'simpleton'  : (

I did find some helpfull examples in nnmail.el, though that look like
something I breezed over in Info but didn't really catch on to.

I have noticed in many examples of mail splitting, the boxes are always
shown in this format 'mail.(dot)name' or 'mail.whatever'.

Lars points out that the actual word 'mail' isn't necessary, but is the
format 'word.word' required.  I just gave names to all mine in a single
word format like so:

(setq nnmail-split-methods
      '(("Box" "From:.*Joe Blow@redhat.com")
         ("Sea-Lore" "Sender:.*neptune@oceanic")
           ("mail.misc" ""))) Seems to work all right for some months
now.  But the stuff shown in nnmail.el is a different split method too.
The last one 'mail.misc', is probably more the result of copying heavily
rather than by design.


Harry:
  > > 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.

Colin:
  
  > You cannot do this in basic or fancy splitting.  Everything is just
  > one line at a time.
  > 
 
Looks like nnmail.el has an example that looks for all the world like it
splits on more than one line.  Unless this is just a joke on Lars for
always 'hawking' those little milk containers. 

  > (setq nnmail-split-methods     
  > 	   '((\"mail.4ad\" \"From:.*4ad\")
  > 	     (\"mail.junk\" \"From:.*Lars\\\\|Subject:.*buy\")  <===****
  > 	     (\"mail.misc\" \"\")))

Understanding why this format does what it does was a little more than I
could absorb, must be making a second sweep or something on the matching.

-- 

Harry Putnam  reader@newsguy.com


  reply	other threads:[~1998-04-08  1:06 UTC|newest]

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