[kdepim] [Bug 448183] New: Messageviewer is confused by strange RFC2047-encoded header

Erik Quaeghebeur bugzilla_noreply at kde.org
Sun Jan 9 22:08:44 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=448183

            Bug ID: 448183
           Summary: Messageviewer is confused by strange RFC2047-encoded
                    header
           Product: kdepim
           Version: 5.16.1
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: messageviewer
          Assignee: kdepim-bugs at kde.org
          Reporter: bugs.kde.org at e3q.eu
  Target Milestone: ---

Created attachment 145281
  --> https://bugs.kde.org/attachment.cgi?id=145281&action=edit
Example mail with RFC2047-encoded header that confuses messageviewer

SUMMARY
Headers can contain RFC2047-encoded (Q-encoded) fragments. I got a mail that
containts such a header that confuses messageviewer into displaying it wrong.
Namely, the Cc field is

---
Cc:
=?UTF-8?Q?comp=2Dneuro=40neuroinformatics=2Ebe_=3Ccomp=2Dneuro=40neuroinformati?=
       
=?UTF-8?Q?cs=2Ebe=3E=2C=2C_connectionists=40cs=2Ecmu=2Eedu_=3Cconnectionists=40cs=2Ecmu=2Eed?=
       
=?UTF-8?Q?u=3E=2C=2C_ml=2Dnews=40googlegroups=2Ecom_=3Cml=2Dnews=40googlegroups=2Ecom=3E=2C=2C_s?=
       
=?UTF-8?Q?ystems=2Dneuroscience=40googlegroups=2Ecom_=3Csystems=2Dneuroscience=40g?=
       
=?UTF-8?Q?ooglegroups=2Ecom=3E=2C=2C_maths=2Dneuronet=40lists=2Enottingham=2Eac=2Euk?=
<ml-news at googlegroups.com>,
        rl-list at googlegroups.com
---

Everything in front of <ml-news at googlegroups.com> is decoded as if it were the
display name for that address, namely, as the string

---
"comp-neuro at neuroinformatics.be <comp-neuro at neuroinformatics.be>,,
connectionists at cs.cmu.edu <connectionists at cs.cmu.edu>,,
ml-news at googlegroups.com <ml-news at googlegroups.com>,,
systems-neuroscience at googlegroups.com <systems-neuroscience at googlegroups.com>,,
maths-neuronet at lists.nottingham.ac.uk <ml-news at googlegroups.com>"
---

whereas actually it should not have the quotes added. (There are issues with
this list, the double commas, but that is not the problem here, I think.)

The attached mail contains this Cc header. I've added the string above without
the quotes to the Bcc header and it seems that the double commas confuse the
header parser into displaying each address twice, so that is a second issue.

SOFTWARE/OS VERSIONS
messagelib version: 21.08.3
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2-r11

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list