[Mono-bugs] [Bug 344974] New: SmtpClient does not respect max line lengths on Base64 encoded mime parts

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 29 11:14:43 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=344974

           Summary: SmtpClient does not respect max line lengths on Base64
                    encoded mime parts
           Product: Mono: Class Libraries
           Version: 1.2.6
          Platform: x86-64
        OS/Version: RHEL 5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: anmar at gmx.net
         QAContact: mono-bugs at ximian.com
          Found By: ---


RFC 2045 section 2.8 states:
"The encoded output stream must be represented in lines of no more than 76
characters each"

And:
"Any characters outside of the base64 alphabet are to be ignored in
base64-encoded data."

RFC 2822 section 2.1.1 also imposes 78 characters plus CRLF line limit.

Right now base64 output generated by SmtpClient is generated as just one single
long line. For large attachments it will even violate the hard limit of 998
chars from RFC 2822 section 2.1.1.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list