summaryrefslogtreecommitdiff
path: root/lib/net/pop.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-12 06:04:40 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-12 06:04:40 +0000
commitbeffb7f8357091b17d5783d6f1b921c4d8727250 (patch)
tree62ab3effac982be552d42e7da2709d7356d91e9d /lib/net/pop.rb
parent960676a2de16f046be01f0ef54ec4efe93ce612d (diff)
aamine
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.26. * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: add module Net::NetPrivate and its inner classes {Read,Write}Adapter, Command, Socket, SMTPCommand, POP3Command, APOPCommand, HTTPCommand git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/pop.rb')
-rw-r--r--lib/net/pop.rb25
1 files changed, 14 insertions, 11 deletions
diff --git a/lib/net/pop.rb b/lib/net/pop.rb
index df95bc0..01b2dea 100644
--- a/lib/net/pop.rb
+++ b/lib/net/pop.rb
@@ -1,6 +1,6 @@
=begin
-= net/pop.rb
+= net/pop.rb version 1.1.27
written by Minero Aoki <aamine@dp.u-netsurf.ne.jp>
@@ -117,7 +117,7 @@ module Net
class POP3 < Protocol
protocol_param :port, '110'
- protocol_param :command_type, '::Net::POP3Command'
+ protocol_param :command_type, '::Net::NetPrivate::POP3Command'
protocol_param :mail_type, '::Net::POPMail'
@@ -155,6 +155,12 @@ module Net
POP3Session = POP3
+ class APOP < POP3
+ protocol_param :command_type, 'Net::NetPrivate::APOPCommand'
+ end
+
+ APOPSession = APOP
+
class POPMail
@@ -174,7 +180,7 @@ module Net
def all( dest = '' )
if iterator? then
- dest = ReadAdapter.new( Proc.new )
+ dest = NetPrivate::ReadAdapter.new( Proc.new )
end
@command.retr( @num, dest )
end
@@ -207,12 +213,7 @@ module Net
- class APOP < POP3
- protocol_param :command_type, 'Net::APOPCommand'
- end
-
- APOPSession = APOP
-
+ module NetPrivate
class POP3Command < Command
@@ -311,7 +312,6 @@ module Net
end
-
class APOPCommand < POP3Command
def initialize( sock )
@@ -334,4 +334,7 @@ module Net
end
-end
+
+ end # module Net::NetPrivate
+
+end # module Net