From: mathew Date: 2011-02-12T07:44:35+09:00 Subject: [ruby-core:35206] Re: Patch to Net::InternetMessageIO 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 --