Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 76418 invoked from network); 22 Oct 2007 13:30:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Oct 2007 13:30:21 -0000 Received: (qmail 77462 invoked by uid 500); 22 Oct 2007 13:30:05 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 77398 invoked by uid 500); 22 Oct 2007 13:30:05 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 77387 invoked by uid 99); 22 Oct 2007 13:30:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Oct 2007 06:30:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [209.133.199.10] (HELO jimsys.jagunet.com) (209.133.199.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Oct 2007 13:30:09 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by jimsys.jagunet.com (Postfix) with ESMTP id 7EC69C25664 for ; Mon, 22 Oct 2007 09:29:16 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <813716b60710201359l2b52b339q3457d7589aec26f2@mail.gmail.com> References: <813716b60710201359l2b52b339q3457d7589aec26f2@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <1D9F61DA-812B-43B5-8CBB-8B49209CF0EA@jaguNET.com> Content-Transfer-Encoding: 7bit From: Jim Jagielski Subject: Re: mod_substitute docs Date: Mon, 22 Oct 2007 09:29:15 -0400 To: dev@httpd.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org On Oct 20, 2007, at 4:59 PM, Vincent Bray wrote: > Hullo, > > I'm attempting to document this module but can't figure out what the f > (flatten) flag does (bucket brigade munging makes my eyes cross). Any > clues? > Say you are looking for 'foo' and have a bucket that contains 'jimfoojag'. The fast way to handle this would be to split off 3 buckets from this, one containing 'jim', the other containing 'jag' and the middle one that contains the substitute for 'foo' (say it's 'bar'). The rub is that the pattern matching looks at buckets only, so you wouldn't see a full bucket that contains 'jimbarjag' and so if you had a search for 'mbarj', it would be missed using the "fast way". In the slow way (flattening), instead of creating the 3 buckets, you go ahead and smash them all together resulting in the single bucket that now contains 'jimbarjag'. Now the search for 'mbarj' would succeed. > Here's a start anyway: > > http://people.apache.org/~noodl/mod_substitute.xml > > -- > noodl >