makeRe is for simple text replacement only - it make a regex from text not 
from a regex

You'll need to write your own code in sub modify.

notice: sub modify gets the MIME-encoded email as argument

IMHO the content is not

<table id="report">
 <col><col><col>

instead it should be

<table id=3D"report">
 <col /><col /><col />


but this really depends on you settings for the blockreport

Thomas



Von:    "K Post" <nntp.p...@gmail.com>
An:     "ASSP development mailing list" <assp-test@lists.sourceforge.net>
Datum:  21.11.2020 21:47
Betreff:        [Assp-test] BlockReport modify.pm help (not urgent)



I could use some help working with BlockReport's modify.pm  

I'm trying to completely remove sections in the block reports similar to:

<table id="report">
 <col><col><col>
 <tr>
 <th colspan="3" id="header">
 <img src="cid:1001" alt="powered by ASSP">
 <b>us...@ourcharity.org</b> no blocked 

 </th>
 </tr>

</table>
<br>
<br>
1 line skipped on global defined filter regex 'BlockReportFilter'<br>

I tried adding different variations of this to the %toReplace array with 
and without the makeRe function. 

The last one I tried was 
     &makeRe("<table id=\"report\">.*global defined filter regex 
'BlockReportFilter'<br>") =>  "",
(with .* intended to capture everything)

which  like all the others I tried, made ASSP quite mad:

Error: Worker_10000: Nested quantifiers in regex; marked by <-- HERE in 
m/<(?:[=] )?t(?:[=] )?a(?:[=] )?b(?:[=] )?l(?:[=] )?e(?:[=] )? (?:[=] 
)?i(?:[=] )?d(?:[=] )?=(?:[=] )?"(?:[=] )?r(?:[=] )?e(?:[=] )?p(?:[=] 
)?o(?:[=] )?r(?:[=] )?t(?:[=] )?"(?:[=] )?>(?:[=] )?
 (?:[=]
)?<(?:[=]
)?c(?:[=]
)?o(?:[=]  (continues)

I'm sure I'm missing or misunderstanding something that's incredibly 
simple.

Thanks
Ken



_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************


_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to