Bug 436909

Summary: kmail2 filter condition on body content always fails for multipart or base-64 encoded messages
Product: [Applications] kmail2 Reporter: Igor Zhuravlov <zhuravlov.ip>
Component: miscAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.14.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: filter of type "contains" - definition
filter of type "contains" - log
filter of type "contains-not" - definition
filter of type "contains-not" - log
filter of type "regexp" - definition
filter of type "regexp" - log
filter of type "not-regexp" - definition
filter of type "not-regexp" - log
a message to filter, case 1
a message to filter, case 2
a message to filter, case 3
a message to filter, case 4
simple logger - bash script
simple logger - log

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