Gnus development mailing list
 help / color / mirror / Atom feed
From: Josh Huber <huber@alum.wpi.edu>
Subject: Re: letting split rules have access to the message body...
Date: 14 May 2001 17:18:38 -0400	[thread overview]
Message-ID: <87k83jk4sx.fsf@mclinux.com> (raw)
In-Reply-To: <vafpudbhej0.fsf@lucy.cs.uni-dortmund.de>

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> It seems this has been done, at least in CVS:
> 
> /----[ from the Gnus info file, node `Fancy Mail Splitting' ]
> |   6. `(: FUNCTION ARG1 ARG2 ...)':  If the split is a list, and the
> |      first element is `:', then the second element will be called as a
> |      function with ARGS given as arguments.  The function should return
> |      a SPLIT.
> | 
> |      For instance, the following function could be used to split based
> |      on the body of the messages:
> | 
> |           (defun split-on-body ()
> |             (save-excursion
> |               (set-buffer " *nnmail incoming*")
> |               (goto-char (point-min))
> |               (when (re-search-forward "Some.*string" nil t)
> |                 "string.group")))
> | 
> |      The `" *nnmail incoming*"' is narrowed to the message in question
> |      when the `:' function is run.
> \----
> 
> Is this enough?

Yes, except could you explain the wording for me?

when it says:

"The `" *nnmail incoming*"' is narrowed to the message in question
 when the `:' function is run."

Does this mean that if I (widen), i could potentially get other
messages?  In other words, is there a buffer that contains the
contents of the incoming spool file, which is then narrowed to each
message in turn?

I need to be able to narrow to the body of the message, the headers or
both.

Is it possible (for example) to narrow to the body of the already
narrowed region, and somehow widen to the previously narrowed region?
something like pop-narrow? :)

Thanks,

-- 
Josh Huber


  reply	other threads:[~2001-05-14 21:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-10 21:30 Josh Huber
2001-05-11 13:20 ` Josh Huber
2001-05-11 22:50 ` Kai Großjohann
2001-05-14 19:13   ` Josh Huber
2001-05-14 20:16     ` Kai Großjohann
2001-05-14 21:18       ` Josh Huber [this message]
2001-05-15  9:24         ` Kai Großjohann
2001-05-15 16:33           ` Josh Huber

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=87k83jk4sx.fsf@mclinux.com \
    --to=huber@alum.wpi.edu \
    /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).