summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-11 17:27:03 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-11 17:27:03 +0000
commitf2a13e60d95c7be55de2fa793a186f5a63a9c142 (patch)
tree19ac92732124ef2ef83f7f968b9c4afd55bb7329 /lib
parentb1f2effda85efd03bd4ad5c06e0aae5e14f3f864 (diff)
* lib/net/smtp.rb: Added Net::SMTP#rset method to implement the SMTP
RSET command. [ruby-trunk - Feature #5373] * NEWS: ditto. * test/net/smtp/test_smtp.rb: Test for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/smtp.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index e525bbb0cf..29862eac12 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -815,6 +815,12 @@ module Net
public
+ # Aborts the current mail transaction
+
+ def rset
+ getok('RSET')
+ end
+
def starttls
getok('STARTTLS')
end