-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Loading branch information
matz
committed
Oct 18, 1999
1 parent
40a3f60
commit 125ca1a
Showing
11 changed files
with
65 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
Mon Oct 18 16:15:52 1999 Yukihiro Matsumoto <[email protected]> | ||
|
||
* ext/nkf/nkf.c (rb_nkf_kconv): output should be NUL terminated. | ||
|
||
Sun Oct 17 03:35:33 1999 Masaki Fukushima <[email protected]> | ||
|
||
* array.c (rb_ary_pop): forgot some freeze checks. | ||
|
||
Fri Oct 15 22:50:41 1999 WATANABE Hirofumi <[email protected]> | ||
|
||
* error.c (sys_nerr): on CYGWIN, it is _sys_nerr. | ||
|
||
Fri Oct 15 01:32:31 1999 WATANABE Hirofumi <[email protected]> | ||
|
||
* io.c (rb_io_ctl) :need to use NUM2ULONG, not NUM2INT. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
nkf.o : nkf.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h nkf1.7/nkf.c | ||
nkf.o : nkf.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h $(srcdir)/nkf1.7/nkf.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
=begin | ||
= Net module version 1.0.2 reference manual | ||
= Net module version 1.0.3 reference manual | ||
pop.rb written by Minero Aoki <[email protected]> | ||
|
@@ -167,6 +167,10 @@ def deleted? | |
@deleted | ||
end | ||
|
||
def uidl | ||
@proto.uidl @num | ||
end | ||
|
||
end | ||
|
||
end # POP3Session | ||
|
@@ -219,6 +223,11 @@ def proto_initialize | |
|
||
class POP3Command < Command | ||
|
||
def initialize( sock ) | ||
@uidl = nil | ||
super | ||
end | ||
|
||
|
||
=begin | ||
|
@@ -323,11 +332,19 @@ def retr( num, dest = '', &block ) | |
|
||
|
||
def dele( num ) | ||
@socket.writeline( sprintf( 'DELE %s', num ) ) | ||
@socket.writeline( 'DELE ' + num.to_s ) | ||
check_reply( SuccessCode ) | ||
end | ||
|
||
|
||
def uidl( num ) | ||
@socket.writeline( 'UIDL ' + num.to_s ) | ||
rep = check_reply( SuccessCode ) | ||
uid = rep.msg.split(' ')[1] | ||
|
||
uid | ||
end | ||
|
||
|
||
private | ||
|
||
|
@@ -412,7 +429,7 @@ def digest( str ) | |
end | ||
|
||
|
||
unless Session::Version == '1.0.2' then | ||
unless Session::Version == '1.0.3' then | ||
$stderr.puts "WARNING: wrong version of session.rb & pop.rb" | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
=begin | ||
= Net module version 1.0.2 reference manual | ||
= Net module version 1.0.3 reference manual | ||
session.rb written by Minero Aoki <[email protected]> | ||
|
@@ -39,7 +39,7 @@ def doquote | |
: Version | ||
The version of Session class. It is a string like "1.0.2". | ||
The version of Session class. It is a string like "1.0.3". | ||
=end | ||
|
||
|
@@ -48,7 +48,7 @@ module Net | |
|
||
class Session | ||
|
||
Version = '1.0.2' | ||
Version = '1.0.3' | ||
|
||
=begin | ||
|
@@ -71,7 +71,9 @@ def initialize( addr = 'localhost', port = nil ) | |
proto_initialize | ||
@address = addr | ||
@port = port if port | ||
|
||
@active = false | ||
@pipe = nil | ||
end | ||
|
||
class << self | ||
|
@@ -133,12 +135,12 @@ def start( *args ) | |
return false if active? | ||
@active = true | ||
|
||
if ProtocolSocket === args[0] then | ||
@socket = args.shift | ||
@socket.pipe = @pipe | ||
if Class === args[0] then | ||
c = args.shift | ||
else | ||
@socket = ProtocolSocket.open( @address, @port, @pipe ) | ||
c = ProtocolSocket | ||
end | ||
@socket = c.open( @address, @port, @pipe ) | ||
@pipe = nil | ||
|
||
@proto = @proto_type.new( @socket ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
=begin | ||
= Net module version 1.0.2 reference manual | ||
= Net module version 1.0.3 reference manual | ||
smtp.rb written by Minero Aoki <[email protected]> | ||
|
@@ -212,7 +212,7 @@ def read_reply | |
end | ||
|
||
|
||
unless Session::Version == '1.0.2' then | ||
unless Session::Version == '1.0.3' then | ||
$stderr.puts "WARNING: wrong version of session.rb & smtp.rb" | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters