[PATCH] consecutive html tags

David Relson relson at osagesoftware.com
Sun Feb 2 22:29:01 CET 2003


At 04:21 PM 2/2/03, you wrote:
>At 11:48 AM 2003-02-02 -0500, David Relson wrote:
>
>>Nick,
>>
>>I've looked at the manner in which kill_html_comments handles consecutive 
>>comments and confirmed the problem you reported.  I also have a patch 
>>which corrects the problem.  The patch, my test message, and the output 
>>are below.
>>
>>Please confirm the fix.
>
>This works.  It also works for my modified version that kills all html 
>tags simply by changing the strip tags.
>
>Looking at dealing with the input line by line, I do not see how to do the 
>reordering like I suggested.  Maybe if you move the entire section into 
>memory before you start moving the tags to the beginning or end of the 
>section?  I will look at your patched program and try to do some guessing.

Thinking about reordering earlier, it seemed like a second buffer is needed 
for efficiency.  There is an XOR trick one can use for swapping values 
without using a temp.  It's not immediately which is quicker or easier.





More information about the bogofilter-dev mailing list