RealRaven2000 / FiltaQuilla

Adds many new mail filter actions to Thunderbird
http://quickfilters.quickfolders.org/filtaquilla.html
GNU General Public License v3.0
85 stars 15 forks source link

Body RegExp Match -Filter doesn't work #269

Open V-H opened 1 month ago

V-H commented 1 month ago

TB 115.12.0, FiltaQuilla 4.1

Processing this Filter: e-Mail (fuke-VH)_2024-07-19_15-14.json brings this Error: FiltaQuilla 10:23:7.273 [1359286 ms] filtaquilla-util.js:222:13 Uncaught InternalError: allocation size overflow bodyMimeMatch chrome://filtaquilla/content/filtaquilla-util.js:596 match chrome://filtaquilla/content/filtaquilla.js:1688 runSelectedFilters chrome://messenger/content/FilterListDialog.js:758 oncommand chrome://messenger/content/FilterListDialog.xhtml:1 filtaquilla-util.js:596:43 in Mails like RegEx-Filter_BeispielMailX.eml.txt

RealRaven2000 commented 1 month ago

I am not sure if I have bandwidth this weekend - jsut preparing for a holiday and I am live streaming on Sunday, leaving on Monday, so I may need a reminder when after I return on the 31st!

RealRaven2000 commented 1 month ago

Since you are still on Tb 115, can you check if rolling back to FiltaQuilla 4.0 resolves the issue?

shoneg commented 1 month ago

Hi, I had the same issue. Rollback to FiltaQuilla 4.0 works for now.

V-H commented 1 month ago

Also rollback to 4.0 — works for now.

RealRaven2000 commented 1 month ago

TB 115.12.0, FiltaQuilla 4.1

Processing this Filter: e-Mail (fuke-VH)_2024-07-19_15-14.json brings this Error: FiltaQuilla 10:23:7.273 [1359286 ms] filtaquilla-util.js:222:13 Uncaught InternalError: allocation size overflow bodyMimeMatch chrome://filtaquilla/content/filtaquilla-util.js:596 match chrome://filtaquilla/content/filtaquilla.js:1688 runSelectedFilters chrome://messenger/content/FilterListDialog.js:758 oncommand chrome://messenger/content/FilterListDialog.xhtml:1 filtaquilla-util.js:596:43 in Mails like RegEx-Filter_BeispielMailX.eml.txt

tested with the wrong filter first. the json name mislead me to test a different one. so the name is Fritz: Datenrate (63 kbit Empfangen, 23 kbit Senden) testing with that next now.

Note tof self: I should suggest a better default file name when saving a single filter

RealRaven2000 commented 1 month ago

TB 115.12.0, FiltaQuilla 4.1

Processing this Filter: e-Mail (fuke-VH)_2024-07-19_15-14.json brings this Error: FiltaQuilla 10:23:7.273 [1359286 ms] filtaquilla-util.js:222:13 Uncaught InternalError: allocation size overflow bodyMimeMatch chrome://filtaquilla/content/filtaquilla-util.js:596 match chrome://filtaquilla/content/filtaquilla.js:1688 runSelectedFilters chrome://messenger/content/FilterListDialog.js:758 oncommand chrome://messenger/content/FilterListDialog.xhtml:1 filtaquilla-util.js:596:43 in Mails like RegEx-Filter_BeispielMailX.eml.txt

I think I have to remove the "To" condition? it's redacted ion your example mail?

RealRaven2000 commented 1 month ago

I cannot reproduce the errors even though matching doesn't work (the extracted body part which is encoded quoted-printable seems to be truncated - probably needs some processing before being parsed by the regex.) If you are using debug mode can you also activate the debug switch extensions.filtaquilla.debug.mimeBody, like this:

image

find and toggle the setting:

image

it should give us additional info during body parsing

RealRaven2000 commented 1 month ago

Part of the message was cut off - so I added code to download it completely; I also added some coded for processing the "quoted printable" format that the provider was using in you example email:

filtaquilla-4.2pre3.zip

The main problem is that it is not easily possible to access the plain text portion of the raw data (which is all I can access during filtering). Thunderbird itself uses C++ methods to do the parsing but these are not accessible to an Add-on.

TonyGravagno commented 1 month ago

v4.2pre3 still has same issue, just moved to a new line. 😁
Personally I'm happy to wait until whenever you can get to it.
Thanks for trying!

image