[pcre-dev] [Bug 820] USing pcre_callout

Inizio della pagina
Delete this message
Autore: Jing Lan
Data:  
To: pcre-dev
Oggetto: [pcre-dev] [Bug 820] USing pcre_callout
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=820




--- Comment #2 from Jing Lan <lan@???> 2009-03-09 19:59:49 ---
I was guessing there might be some in-compatible issue. Yet the result I got
from my trial set seems not correct. If I make a rule with callout as:
(test(?C1)) $0=ENTITY:callout:ADV/ADV

The current callout function will only check string match, and the matching
data only has two lines:
CALL
call

And my testing data has a line as:
a testcallOUT AND and testCALLOUT and friday

With my patch, I got
a <dnt_entity_callout pos="ADV/ADV">testcall</dnt_entity_callout>OUT AND and
<dnt_entity_callout pos="ADV/ADV">testCALL</dnt_entity_callout>OUT and friday

Without it, I got
a <dnt_entity_callout pos="ADV/ADV">test</dnt_entity_callout>callOUT AND and
<dnt_entity_callout pos="ADV/ADV">test</dnt_entity_callout>CALLOUT and friday

It seems the pattern is correctly found, yet the end of re-writinng location is
not correctly calculated.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email