[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-anubis] GNU Anubis 4.0 released.
From: |
Paolo |
Subject: |
Re: [bug-anubis] GNU Anubis 4.0 released. |
Date: |
Sat, 1 Jan 2005 16:07:51 +0100 |
User-agent: |
Mutt/1.3.28i |
On Sat, Jan 01, 2005 at 02:14:44PM +0200, Sergey Poznyakoff wrote:
> Paolo <address@hidden> wrote:
>
> >
> > modify body :perl ["[[:blank:]]*X-Anomy.*"] ""
> >
> > but anubis crashes on it - I get
>
> While admitting that dumping core on incorrect input is bad behaviour[1] I
> must say thet the above regexp is definitely incorrect. In accordance
> with pcre manpage:
yeah, I guessed so - that pcre doesn't know the :blank: extension, though
my 'man pcre' says nothing about avail classes, so I asked 'perldoc perlre'
hoping for equivalence, but this doesn't seem the case - pcre seems a
subset of perlre.
Indeed, I've found anubis dies with sig11 also on $* at end of re (perhaps
on any wrong re, so patch should fix this one as well):
here pcre was "\s*X-Anomy.*$*":
[24241] pcre_compile() failed at offset 12: nothing to repeat.
> [24233] Child [24241] finished. Terminated on signal 11. 0 clients left.
while trying to get rid of the \n at end of line - while $* and [\n\r]*
and \W* do the trick in a perl one-liner (as well as m//ms), there seems
to be no way to just delete one line with 'modify body', as the required
subst pattern puts at least a \n anyway.
> Text
> Test 1
> X-Anomyzation 3
> Test 2
> --cut here---
> Text
> Test 1
>
> Test 2
> --cut here---
>
> As you see, 'X-Anomy.*' line got deleted.
actually, replaced by a void line (\n), see above - so, is there a way
to just fully delete a line (like in the non-working example in info-page)?
--
paolo
GPG/PGP id:0x21426690 kfp:EDFB 0103 A8D8 4180 8AB5 D59E 9771 0F28 2142 6690
"Indeed, it does come with warranty: it *will* fail, sometimes, somehow..."
- software vendor
- Re: [bug-anubis] GNU Anubis 4.0 released., Sergey Poznyakoff, 2005/01/01
- Re: [bug-anubis] GNU Anubis 4.0 released.,
Paolo <=
- Re: [bug-anubis] GNU Anubis 4.0 released., Sergey Poznyakoff, 2005/01/01
- Re: [bug-anubis] GNU Anubis 4.0 released., Paolo, 2005/01/01
- Message not available
- Re: [bug-anubis] GNU Anubis 4.0 released., Paolo, 2005/01/02
- Re: [bug-anubis] GNU Anubis 4.0 released., Sergey Poznyakoff, 2005/01/02
- Re: [bug-anubis] GNU Anubis 4.0 released., Paolo, 2005/01/02
- Re: [bug-anubis] GNU Anubis 4.0 released., Sergey Poznyakoff, 2005/01/02
- Re: [bug-anubis] GNU Anubis 4.0 released., Sergey Poznyakoff, 2005/01/02