Gnus development mailing list
 help / color / mirror / Atom feed
* RESTRICT for splits: (FIELD VALUE [- RESTRICT [...]] SPLIT)
@ 1999-07-05  1:52 Alexandre Oliva
  1999-07-05  2:37 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Oliva @ 1999-07-05  1:52 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]

This is a new implementation of RESTRICT clauses in fancy splits.
It's much simpler than the one I posted before, but it's reasonably
easy to prove that, if restricts are not used, it is equivalent to the
currently installed code.

However, because the multi-match feature is not included in this
patch, it may fail to handle certain cross-posting cases.  For
example, if the split is `(any "foo"- "x-foo" "foo.list")' and the
header line that first matches `foo' is: `To: foo, x-foo', this split
won't be used, because `x-foo' will be matched and restrict will
match, but no other occurrences of `foo' will be looked for.

The patch for the lisp code is the first attachment.  The second
attachment is a re-post of the patch for the .texi documentation.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists

[-- Attachment #2: restrict.patch --]
[-- Type: application/x-patch, Size: 3804 bytes --]

[-- Attachment #3: restrict-docs.patch --]
[-- Type: application/x-patch, Size: 1693 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RESTRICT for splits: (FIELD VALUE [- RESTRICT [...]] SPLIT)
  1999-07-05  1:52 RESTRICT for splits: (FIELD VALUE [- RESTRICT [...]] SPLIT) Alexandre Oliva
@ 1999-07-05  2:37 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 1999-07-05  2:37 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 606 bytes --]

On Jul  4, 1999, Alexandre Oliva <oliva@dcc.unicamp.br> wrote:

> However, because the multi-match feature is not included in this
> patch, it may fail to handle certain cross-posting cases.

And now, the multi-match feature.  The patch was created ignoring
blanks, so that it is more readable and its simplicity is clearer.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists

[-- Attachment #2: multi-match.patch --]
[-- Type: application/x-patch, Size: 3038 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-07-05  2:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-05  1:52 RESTRICT for splits: (FIELD VALUE [- RESTRICT [...]] SPLIT) Alexandre Oliva
1999-07-05  2:37 ` Alexandre Oliva

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).