Gnus development mailing list
 help / color / mirror / Atom feed
From: David Z Maze <dmaze@MIT.EDU>
Subject: Re: Fancy splitting getting headers from included text
Date: Tue, 15 Apr 2003 14:12:24 -0400	[thread overview]
Message-ID: <87ptnntyt3.fsf@cag.lcs.mit.edu> (raw)
In-Reply-To: <4n3ckjbqpg.fsf@lockgroove.bwh.harvard.edu> (Ted Zlatanov's message of "Tue, 15 Apr 2003 13:44:43 -0400")

Ted Zlatanov <tzz@lifelogs.com> writes:

> Are you and Simon saying the code also needs a save-restriction inside
> the save-excursion?  If that's the case, try this (improperly
> indented) version of spam-split and see how it works:

Aah, that seems to have helped.

> I think the code you mean is this:
>
>   (save-excursion
>   (dolist (check spam-list-of-statistical-checks)
>     (when (symbol-value check)
>       (widen)
>       (gnus-message 8 "spam-split: widening the buffer (%s requires it)"
> 		    (symbol-name check))
>       (return)))
> ...)

Yeah, I might write something more like

(if (memq nil
      (mapcar 'not
        (mapcar 'symbol-value spam-list-of-statistical-checks)))
  (widen))

Though that eliminates the possibility of the gnus-message.

-- 
David Maze             dmaze@mit.edu          http://www.mit.edu/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell




  reply	other threads:[~2003-04-15 18:12 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-25 19:02 David Z Maze
2003-03-26  8:21 ` Niklas Morberg
2003-03-30  2:47 ` Lars Magne Ingebrigtsen
2003-03-30  9:31   ` Kai Großjohann
2003-03-30 12:08     ` Simon Josefsson
2003-04-05 13:29       ` Ted Zlatanov
2003-04-14 15:53       ` David Z Maze
2003-04-14 16:33         ` Simon Josefsson
2003-04-14 20:25           ` David Z Maze
2003-04-15 17:44             ` Ted Zlatanov
2003-04-15 18:12               ` David Z Maze [this message]
2003-04-15 19:47                 ` Ted Zlatanov
2003-05-07 14:27                   ` Niklas Morberg
2003-06-11  9:23                     ` Niklas Morberg
2003-06-13  8:33                       ` Niklas Morberg
2003-06-13  9:35                         ` Niklas Morberg
2003-06-13  9:50                           ` [PATCH] " Niklas Morberg
2003-06-13 21:07                             ` Kai Großjohann

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=87ptnntyt3.fsf@cag.lcs.mit.edu \
    --to=dmaze@mit.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).