[Mono-bugs] [Bug 389544] New: Sys.Net.Mail: Special characters in header fields are not encoded

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 12 16:42:20 EDT 2008


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


           Summary: Sys.Net.Mail: Special characters in header fields are
                    not encoded
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: juraj at hotfeet.ch
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=214519)
 --> (https://bugzilla.novell.com/attachment.cgi?id=214519)
mailtest.cs - test case

Running the attached sample results in following mail message to be sent:

================
Delivered-To: xyz at hotfeet.ch
Date: Mon, 12 May 2008 22:34:14 +0200
From: xyz at hotfeet.ch
To: xyz at hotfeet.ch
Subject: =?utf-8?B?VGl0bGXDtsOkw7w=?=
MIME-Version: 1.0
Umlaute: Testöäü
Key1: Line 1
Message-Id: <20080512203414.C260122A8023 at phoenix.hotfeet.ch>

Line 2
Line 3
Key2: Test
Content-Type: text/plain; charset=us-ascii

Content
================

The newline char in header field "key1" pushes the following lines into the
body of message! The string "Testöäü" should be encoded as well.


The sample program takes 3 arguments:
- "from" mail address
- "to" mail address
- smtp hostname


-- 
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