[Bug 303305] New: A "From " at the beginning of a line is not escaped thus breaking signatures (ignoring RfC 4880 recommendation)

Hauke Laging hauke at laging.de
Tue Jul 10 15:53:30 BST 2012


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

            Bug ID: 303305
          Severity: major
           Version: unspecified
          Priority: NOR
          Assignee: kdepim-bugs at kde.org
           Summary: A "From " at the beginning of a line is not escaped
                    thus breaking signatures (ignoring RfC 4880
                    recommendation)
    Classification: Unclassified
                OS: Linux
          Reporter: hauke at laging.de
          Hardware: openSUSE RPMs
            Status: UNCONFIRMED
         Component: crypto
           Product: kmail2

KMail (4.7.2 but I haven't found a bug referring to this) violates a RfC 4880
recommendation:

#############################
Note: If any line begins with the string "From ", it is strongly suggested that
either the Quoted-Printable or Base64 MIME encoding be applied.  If
Quoted-Printable is used, at least one of the characters in the string should
be encoded using the hexadecimal coding rule.  This is because many mail
transfer and delivery agents treat "From " (the word "from" followed
immediately by a space character) as the start of a new message and thus insert
a right angle-bracket (>) in front of any line beginning with "From " to
distinguish this case, invalidating the signature.
#############################

This is not really a problem of the crypto component but the failure probably
affects crypto only.

Reproducible: Always

Steps to Reproduce:
1. Write an email with a line beginning with "From " which is not sent as
base64.
Actual Results:  
"From " is not escaped.

Expected Results:  
As said in the RfC quote.

To see the broken signature just send the mail to a "suitable" mailing list
(like the GnuPG mailing list, Mailman version 2.1.12rc1). Local storage in mbox
format may "work", too.

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


More information about the Kdepim-bugs mailing list