[Mono-bugs] [Bug 78876][Nor] New - System.Web.Mail : space not needed between name and "<"
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Jul 17 05:41:33 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by informatique.internet at fiducial.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=78876
--- shadow/78876 2006-07-17 05:41:33.000000000 -0400
+++ shadow/78876.tmp.19674 2006-07-17 05:41:33.000000000 -0400
@@ -0,0 +1,146 @@
+Bug#: 78876
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com
+ReportedBy: informatique.internet at fiducial.fr
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.Web.Mail : space not needed between name and "<"
+
+Description of Problem:
+If you look at the RFC822 :
+
+p36
+
+ A.2.3. Secretary-sent, for user of shared directory
+
+ George Jones' secretary sends mail for George. Replies
+ should go to George.
+
+ From: George Jones<Shared at Group.Org>
+ Sender: Secy at Other-Group
+
+ Note that there need not be a space between "Jones" and the
+ "<", but adding a space enhances readability (as is the case
+ in other examples.
+
+
+
+Steps to reproduce the problem:
+1. try this
+ class MainClass
+ {
+
+ private static string smtpserver="10.69.100.165";
+ public static void Main(string[] args)
+ {
+ Console.WriteLine("Hello World!");
+ MailMessage mail=new MailMessage();
+ mail.From="Hubert FONGARNAND<hubert at fidudev.fr>";
+ mail.To="Hubert FONGARNAND<hubert at fidudev.fr>";
+ mail.Body="hello";
+ SmtpMail.SmtpServer=smtpserver;
+ SmtpMail.Send(mail);
+ }
+ }
+
+Actual Results:
+Here's the SMTP Dialog :
+
+220 kolabserver.fidudev.fr ESMTP Postfix
+
+HELO hublinux
+
+250 kolabserver.fidudev.fr
+
+RSET
+
+250 Ok
+
+MAIL FROM: <FONGARNAND<hubert at fidudev.fr>
+
+501 Bad sender address syntax
+
+
+
+Expected Results:
+220 kolabserver.fidudev.fr ESMTP Postfix
+
+HELO hublinux
+
+250 kolabserver.fidudev.fr
+
+RSET
+
+250 Ok
+
+MAIL FROM: <hubert at fidudev.fr>
+
+250 Ok
+
+RCPT TO: <hubert at fidudev.fr>
+
+250 Ok
+
+DATA
+
+354 End data with <CR><LF>.<CR><LF>
+
+From: "Hubert FONGARNAND"<hubert at fidudev.fr>
+
+To: "Hubert FONGARNAND"<hubert at fidudev.fr>
+
+Subject:
+
+Content-Type: text/plain; charset="utf-8"
+
+Importance: normal
+
+Priority: normal
+
+Mime-Version: 1.0
+
+Content-Transfer-Encoding: 8bit
+
+
+
+hello
+
+.
+
+250 Ok: queued as 5E8C6432B1
+
+QUIT
+
+221 Bye
+
+
+
+How often does this happen?
+Always
+
+
+Additional Information:
+This program work well with MS.NET
+
+Note that if you replace :
+mail.From="Hubert FONGARNAND<hubert at fidudev.fr>";
+by
+mail.From="Hubert FONGARNAND <hubert at fidudev.fr>";
+and
+mail.To="Hubert FONGARNAND<hubert at fidudev.fr>";
+by
+mail.To="Hubert FONGARNAND <hubert at fidudev.fr>";
+
+it works
+
+I think it's a regexp pb...
More information about the mono-bugs
mailing list