Gnus development mailing list
 help / color / mirror / Atom feed
From: Dale Hagglund <rdh@best.com>
Subject: Re: nnmail-split-header-length-limit is EVIL!
Date: 29 Mar 1999 22:05:25 -0800	[thread overview]
Message-ID: <863e2nikbe.fsf@ponoka.battleriver.com> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "28 Mar 1999 17:09:59 +0200"

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Oh, I had forgotten that.  Yes, there were two problems with the
> long lines -- the regexp could either overflow, or it could just
> take forever to run.  I've now reverted to removing the lines again.

This slightly crazy idea just occurred to me.  Say the max header
limit is 500, and some particular header line is, say, 1700 bytes.

What about matching the line against the split regexps in *overlapping
substrings* of at most 500 bytes each?  Each substring overlaps the
end of the previous chunk by, for example, 100 bytes.

You'd have to have some code to combine the split-results from each
substring, but that shouldn't be so hard.

I can't think that split strings depend in practice on matching a
substring longer than 100 bytes, but the ovelap amount could be
controlled by a variable as well.  Naturally, this whole slightly
weird behaviour should probably be controlled by yet another variable.

This might allow gnus to handle arbitrarily long header lines in a
more-or-less natural fashion without falling victim to the odd
pathological regular expression.

Is there something stupid I'm missing here?  Does anyone use split
regexps that would fail to work properly in this scheme?

Dale.


  parent reply	other threads:[~1999-03-30  6:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-02 10:57 Hrvoje Niksic
1999-03-06 18:16 ` Lars Magne Ingebrigtsen
1999-03-07 13:27   ` Hrvoje Niksic
1999-03-14 15:53     ` Lars Magne Ingebrigtsen
1999-03-16  7:25       ` Hrvoje Niksic
1999-03-28 15:09         ` Lars Magne Ingebrigtsen
1999-03-29 20:20           ` Hans de Graaff
1999-04-02 14:03             ` Lars Magne Ingebrigtsen
1999-04-03  7:00               ` Hans de Graaff
1999-04-17  6:16                 ` Lars Magne Ingebrigtsen
1999-04-13  7:04               ` Hrvoje Niksic
1999-04-17  6:15                 ` Lars Magne Ingebrigtsen
1999-03-30  6:05           ` Dale Hagglund [this message]
1999-03-31  3:02             ` Greg Stark
1999-03-31  7:17               ` Dale Hagglund
1999-04-01  2:54                 ` Peter Seibel
1999-04-01  7:02                   ` Dale Hagglund
1999-04-01  7:13                     ` Peter Seibel

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=863e2nikbe.fsf@ponoka.battleriver.com \
    --to=rdh@best.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).