From: Daniel Cormier Date: 2011-02-12T08:08:17+09:00 Subject: [ruby-core:35207] Re: Patch to Net::InternetMessageIO Perhaps that is a better solution, but shouldn't sending a message using DATA work properly whether in ESMTP mode or not? Daniel On Fri, Feb 11, 2011 at 5:44 PM, mathew wrote: > On Fri, Feb 11, 2011 at 09:13, Daniel Cormier wrote: >> ��This patch addresses an issue when sending a message with Net::SMTP >> where the last line starts with a period and does not end with \n or >> \r\n. > [...] >> �Now properly sends the last line of an email when it begins with a >> period and does not end with \n or \r\n. > > When ESMTP is active, the text can be sent using BDAT, and there's no > escaping of . required. > > So I think a better patch would be to improve the data() method in > net/smtp, and make it use BDAT if in ESMTP mode--and if not, do the > escaping there. > > > mathew > -- > > >