Bug 436909 - kmail2 filter condition on body content always fails for multipart or base-64 encoded messages
Summary: kmail2 filter condition on body content always fails for multipart or base-64...
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: misc (show other bugs)
Version: 5.14.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-11 06:12 UTC by Igor Zhuravlov
Modified: 2021-05-11 07:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
filter of type "contains" - definition (522 bytes, text/plain)
2021-05-11 06:12 UTC, Igor Zhuravlov
Details
filter of type "contains" - log (1.77 KB, text/x-log)
2021-05-11 06:13 UTC, Igor Zhuravlov
Details
filter of type "contains-not" - definition (530 bytes, text/plain)
2021-05-11 06:14 UTC, Igor Zhuravlov
Details
filter of type "contains-not" - log (2.05 KB, text/x-log)
2021-05-11 06:15 UTC, Igor Zhuravlov
Details
filter of type "regexp" - definition (534 bytes, text/plain)
2021-05-11 06:16 UTC, Igor Zhuravlov
Details
filter of type "regexp" - log (1.80 KB, text/x-log)
2021-05-11 06:16 UTC, Igor Zhuravlov
Details
filter of type "not-regexp" - definition (546 bytes, text/plain)
2021-05-11 06:17 UTC, Igor Zhuravlov
Details
filter of type "not-regexp" - log (2.09 KB, text/x-log)
2021-05-11 06:17 UTC, Igor Zhuravlov
Details
a message to filter, case 1 (378 bytes, message/rfc822)
2021-05-11 06:18 UTC, Igor Zhuravlov
Details
a message to filter, case 2 (405 bytes, message/rfc822)
2021-05-11 06:18 UTC, Igor Zhuravlov
Details
a message to filter, case 3 (1.51 KB, message/rfc822)
2021-05-11 06:19 UTC, Igor Zhuravlov
Details
a message to filter, case 4 (1.99 KB, message/rfc822)
2021-05-11 06:19 UTC, Igor Zhuravlov
Details
simple logger - bash script (55 bytes, text/x-shellscript)
2021-05-11 06:20 UTC, Igor Zhuravlov
Details
simple logger - log (398 bytes, text/x-log)
2021-05-11 06:20 UTC, Igor Zhuravlov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Zhuravlov 2021-05-11 06:12:29 UTC
Created attachment 138312 [details]
filter of type "contains" - definition

SUMMARY

Any filter with condition on body fails if the message is multipart or base-64 encoded.

STEPS TO REPRODUCE
1. Create any filter rule with any condition of the following type:
- "<body>" <contains>
- "<body>" <contains-not>
- "<body>" <regexp>
2. Apply it to any message which satisfies this condition and is multipart base-64 encoded.

OBSERVED RESULT
Matching always fail.

EXPECTED RESULT
Message must match and the action defined should be applied.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux (x86_64) release 5.3.18-lp152.72-default
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7 (built with version 5.12.7)

ADDITIONAL INFORMATION
KDE Applications: 20.04.2
Comment 1 Igor Zhuravlov 2021-05-11 06:13:34 UTC
Created attachment 138314 [details]
filter of type "contains" - log
Comment 2 Igor Zhuravlov 2021-05-11 06:14:42 UTC
Created attachment 138315 [details]
filter of type "contains-not" - definition
Comment 3 Igor Zhuravlov 2021-05-11 06:15:33 UTC
Created attachment 138316 [details]
filter of type "contains-not" - log
Comment 4 Igor Zhuravlov 2021-05-11 06:16:11 UTC
Created attachment 138317 [details]
filter of type "regexp" - definition
Comment 5 Igor Zhuravlov 2021-05-11 06:16:36 UTC
Created attachment 138318 [details]
filter of type "regexp" - log
Comment 6 Igor Zhuravlov 2021-05-11 06:17:00 UTC
Created attachment 138320 [details]
filter of type "not-regexp" - definition
Comment 7 Igor Zhuravlov 2021-05-11 06:17:27 UTC
Created attachment 138321 [details]
filter of type "not-regexp" - log
Comment 8 Igor Zhuravlov 2021-05-11 06:18:36 UTC
Created attachment 138322 [details]
a message to filter, case 1
Comment 9 Igor Zhuravlov 2021-05-11 06:18:57 UTC
Created attachment 138323 [details]
a message to filter, case 2
Comment 10 Igor Zhuravlov 2021-05-11 06:19:17 UTC
Created attachment 138324 [details]
a message to filter, case 3
Comment 11 Igor Zhuravlov 2021-05-11 06:19:35 UTC
Created attachment 138325 [details]
a message to filter, case 4
Comment 12 Igor Zhuravlov 2021-05-11 06:20:18 UTC
Created attachment 138326 [details]
simple logger - bash script
Comment 13 Igor Zhuravlov 2021-05-11 06:20:46 UTC
Created attachment 138327 [details]
simple logger - log