summaryrefslogtreecommitdiffstats
path: root/lib/net/pop.rb
Commit message (Collapse)AuthorAgeFilesLines
* * lib/net/http.rb (finish): revert to 1.93.aamine2003-09-291-2/+11
| | | | | | | | | | | | * lib/net/pop.rb (finish): revert to 1.60. * lib/net/smtp.rb (finish): revert to 1.67. * lib/net/http.rb (do_start): ensure to close socket if failed to start session. * lib/net/pop.rb (do_start): ditto. * lib/net/smtp.rb (do_start): ditto. * lib/net/smtp.rb: SMTP#started? wrongly returned false always. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (finish): does not raise IOError even if !started?, to ↵aamine2003-09-291-4/+2
| | | | | | | | | | allow duplicated #finish call. * lib/net/pop.rb (finish): ditto. * lib/net/smtp.rb (finish): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: update document.aamine2003-08-051-16/+23
| | | | | | | | * lib/net/pop.rb: ditto. * lib/net/protocol.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RDoc comments provided by William Webber <wew@williamwebber.com>gsinclair2003-08-051-467/+405
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: synchronize document with source code.aamine2003-07-021-103/+173
| | | | | | | * lib/net/pop.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: unify SMTP and SMTPCommand.aamine2003-07-021-55/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/net/smtp.rb: new exception class SMTPError. * lib/net/smtp.rb: new exception class SMTPAuthenticationError. * lib/net/smtp.rb: new exception class SMTPServerBusy. * lib/net/smtp.rb: new exception class SMTPSyntaxError. * lib/net/smtp.rb: new exception class SMTPFatalError. * lib/net/smtp.rb: new exception class SMTPUnknownError. * lib/net/smtp.rb: change critical section protect algorithm. * lib/net/smtp.rb (SMTP#do_start): check authentication args before all. * lib/net/smtp.rb: new method send_message (alias send_mail). * lib/net/smtp.rb: new method open_message_stream (alias ready). * lib/net/pop.rb: POPBadResponse is a POPError. * lib/net/pop.rb (POPMail#pop): ban ReadAdapter. * lib/net/pop.rb (POPMail#top): ditto. * lib/net/pop.rb (POP3Command): change critical section protect algorithm. * lib/net/pop.rb (POP3Command#auth): USER and PASS should be one critical block. * lib/net/pop.rb (POP3Command#retr): ban `dest' argument using iterator. * lib/net/pop.rb (POP3Command#top): ditto. * lib/net/protocol.rb: #read_message_to -> #each_message_chunk * lib/net/protocol.rb: #D -> #LOG * lib/net/protocol.rb: #D_off -> #LOG_off * lib/net/protocol.rb: #D_on -> #LOG_on git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (Net::POP3#start): typofix.eban2003-07-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: rename method: POP3#mail_size -> n_mailsaamine2003-05-061-26/+18
| | | | | | | * lib/net/pop.rb: rename method: POP3#bytes -> n_bytes git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: APOP did not work. [ruby-dev:20149]aamine2003-05-041-8/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb: reintroduce Protocol.protocol_param.aamine2003-05-021-1/+1
| | | | | | | | | * lib/net/http.rb: ditto. * lib/net/pop.rb: ditto. * lib/net/smtp.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb: remove Protocol class.aamine2003-05-021-165/+332
| | | | | | | | | | | | | | | | * lib/net/smtp.rb (SMTP): ditto. * lib/net/pop.rb (POP3): ditto. * lib/net/http.rb (HTTP): ditto. * lib/net/protocol.rb: remove Command class. * lib/net/smtp.rb (SMTPCommand): ditto. * lib/net/pop.rb (POP3Command): ditto. * lib/net/pop.rb: remove APOPCommand class. * lib/net/protocol.rb: remove Code class and its all subclasses. * lib/net/protocol.rb: remove Response class and its all subclasses. * lib/net/pop.rb (POPMail): new method unique_id (alias uidl). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: Exception line was accidentaly removed. [ruby-dev:19989]aamine2003-04-101-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: do not dispatch LIST when a mailbox is empty.aamine2003-03-091-74/+97
| | | | | | | | | | * lib/net/pop.rb: merge the 'STAT' patch from Frank S.Fejes <frank@oopdreams.com>, with modifications (listed below). * lib/net/pop.rb: new method Net::POP#mail_size. * lib/net/pop.rb: new method Net::POP#bytes. * lib/net/pop.rb: new method Net::POPCommand#stat. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: changes coding style.aamine2002-11-211-21/+26
| | | | | | | | * lib/net/pop.rb: ditto. * lib/net/protocol.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use Object#class instead of deprecated Object#type.nobu2002-10-021-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2002-02-191-41/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/net/protocol.rb: rename Protocol.port to default_port. * lib/net/smtp.rb: ditto. * lib/net/pop.rb: ditto. * lib/net/http.rb: ditto. * lib/net/protocol.rb: rename BufferedSocket class to InternetMessageIO. * lib/net/smtp.rb: ditto. * lib/net/pop.rb: ditto. * lib/net/http.rb: ditto. * lib/net/protocol.rb: rename InternetMessageIO#write_pendstr to write_message. * lib/net/smtp.rb: ditto. * lib/net/protocol.rb: new method InternetMessageIO#through_message. * lib/net/smtp.rb: ditto. * lib/net/protocol.rb: rename InternetMessageIO#read_pendstr to read_message_to. * lib/net/pop.rb: ditto. * lib/net/protocol.rb: rename InternetMessageIO#read_pendlist to each_list_item * lib/net/pop.rb: ditto. * lib/net/protocol.rb: Now block size is 1024. * lib/net/smtp.rb: new methods SMTP#esmtp? and #esmtp=. * lib/net/http.rb: Using singleton method syntax instead of singleton class clause, to avoid behavior change of class variables in ruby 1.7. * lib/net/http.rb: HTTPResponse class does not inherit from Net::Response. * lib/net/http.rb: devide HTTP#connecting into {begin,end}_transport. * lib/net/http.rb: unused class Accumulator removed. * lib/net/http.rb: Net::HTTP reads response. not HTTPRequest. * lib/net/http.rb: proxy related class-instance-variables are not initialized correctly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-301-82/+96
| | | | | | | | | | | * lib/net/protocol.rb: Protocol#start returns the return value of block. * lib/net/protocol.rb: set timeout limit by default. * lib/net/protocol.rb: new methods WriteAdapter#write, puts, print, printf. * lib/net/http.rb: rename HTTP#get2 to request_get, post2 to request_post ... * lib/net/smtp.rb: should not resolve HELO domain automatically. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-131-29/+34
| | | | | | | | | | | | * lib/net/pop.rb: new method Net::POP3.APOP * lib/net/http.rb: set default Content-Type to x-www-form-urlencoded (causes warning) * lib/net/protocol.rb: remove Net::NetPrivate module. * lib/net/smtp.rb: ditto. * lib/net/pop.rb: ditto. * lib/net/http.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-091-49/+81
| | | | | | | * lib/net/protocol.rb: calls on_connect before conn_command git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-071-19/+17
| | | | | | | | | | | * lib/net/smtp.rb: SMTP.new requires at least one arg. * lib/net/pop.rb: POP.new requires at least one arg. * lib/net/pop.rb: uses "raise *Error.new" instead of simple raise. * lib/net/http.rb: HTTP.new requires at least one arg. * lib/net/http.rb: changes implicit start algolithm. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Reflect the update of the MD5 module which is now Digest::MD5.knu2001-12-011-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-08-171-12/+12
| | | | | | | | | | * lib/net/protocol.rb: Protocol.new requires at least one arg. * lib/net/smtp.rb: ditto. * lib/net/pop.rb: ditto. * lib/net/http.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-081-1/+1
| | | | | | | | * lib/net/http.rb: rename HTTP#request_by_name to send_request. * lib/net/protocol.rb (ProtoSocket#read): modify typo. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-031-1/+1
| | | | | | | | | | * lib/net/http.rb (HTTP#request_by_name): bug fix. * lib/net/http.rb: does not write Connection: by default. * lib/net/protocol.rb: "start" for started protocol is an error. * lib/net/protocol.rb: "finish" for finished protocol is an error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-031-1/+1
| | | | | | | | * lib/net/http.rb: new method HTTP#request_by_name (test) * lib/net/http.rb: new class HTTPGenericRequest git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * protocol.rb,smtp.rb,pop.rb,http.rb: modify document.aamine2001-06-271-79/+82
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-06-261-107/+230
| | | | | | | | | | * lib/net/pop.rb: new methods POP3.auth_only, POP3#auth_only * lib/net/http.rb: HTTP.Proxy returns self if ADDRESS is nil. * lib/net/protocol.rb: new method ProtocolError#response * lib/net/protocol.rb,smtp.rb,pop.rb,http.rb: add document. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-241-7/+9
| | | | | | | | * lib/net/http.rb: always close connection on request without body. * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: change copyright. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-061-3/+10
| | | | | | | | * lib/net/http.rb: call on_connect() on re-opening socket. * lib/net/pop.rb: also POP3 can use APOP auth. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-061-1/+1
| | | | | | | | | | * lib/net/http.rb: add HTTP#request. * lib/net/http.rb: take HTTP 1.0 server into account (incomplete). * lib/net/protocol.rb: timeout for open/read. * lib/net/protocol.rb: add Protocol#on_connect,on_disconnect. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-01-131-1/+1
| | | | | | | | * lib/net/protocol.rb (adding): too few "yield" in case of arg is not String/File. * lib/net/http.rb: add http request object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-12-241-11/+10
| | | | | | | | * lib/net/protocol.rb,smtp.rb,pop.rb,http.rb: wrongly version 1.2 sources were checked in. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-12-241-10/+11
| | | | | | | * lib/net/http.rb: does not send HEAD on closing socket. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-12-221-21/+107
| | | | | | | | | | | * lib/net/protocol.rb: set @closed false in Socket#reopen. * lib/net/pop.rb: add POP3.foreach, delete_all. * lib/net/pop.rb: add POP3#delete_all. * lib/net/http.rb: add HTTP.version_1_1, version_1_2 * lib/net/http.rb: refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-11-101-1/+1
| | | | | | | | | * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.31 * lib/net/http.rb: initializes header in HTTP, not HTTPCommand * lib/net/protocol.rb, http.rb: rewrites proxy code git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-11-071-1/+1
| | | | | | | | | * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.30 * lib/net/protocol.rb, smtp.rb: Command#critical_ok -> error_ok * lib/net/http.rb: read header when also "100 Continue" git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-10-121-6/+25
| | | | | | | | * lib/net/pop.rb: POP3#reset * lib/net/http.rb: a code for "Switch Protocol" was wrongly 100 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-09-211-3/+7
| | | | | | | | | * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.28. * lib/net/http.rb: HTTPReadAdapter -> HTTPResponseReceiver * lib/net/http.rb (connecting): response is got in receive() git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* matz: 1.6.0 final (hopufully)matz2000-09-121-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-08-161-3/+4
| | | | | | | | | * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.27. * lib/net/protocol.rb: writing methods returns written byte size. * lib/net/smtp.rb: send_mail accepts many destinations. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-07-121-11/+14
| | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* o protocol.rb, smtp.rb, pop.rb, http.rb: define all#inspect()aamine2000-06-121-78/+58
| | | | | | | o protocol.rb, smtp.rb, pop.rb, http.rb: modify/add documents git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* o protocol.rb, http.rb, smtp.rb, pop.rb: update RD documentsaamine2000-05-181-6/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* o protocol.rb: Protocol#start yields selfaamine2000-05-171-9/+3
| | | | | | | | o smtp.rb: use Socket.gethostname to get localhost name p pop.rb: use MD5#hexdigest git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* o pop.rb: accept illegal timestamp (reported by WATANABE Hirofumi)aamine2000-04-141-3/+3
| | | | | | | o http.rb: when body was chunked, does not set 'Content-Length' git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* protocol.rb smtp.rb pop.rb http.rb version 1.1.12aamine2000-03-311-2/+2
| | | | | | | | | | o protocol.rb: update Net::Protocol::Proxy#connect o protocol.rb: ReplyCode is not a class o http.rb: header value does not include header name o http.rb: header is not a Hash, but HTTPResponse git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* v1.1.11aamine2000-03-271-38/+48
| | | | | | | | | | | | | o all: use "critical" to avoid duplicated command dispatch o http.rb: change get2, post2 usage (HTTPWriter) o http.rb: entity reading algorithm is better o http.rb: more reply code (4xx, 5xx) o protocol.rb: arguments of "connect" can be omitted o protocol.rb: "quit" is not template method (now do_quit is removed) o protocol.rb: ReplyCode.error_type was not work: using module_eval git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* o protocol.rb: version 1.1.9aamine2000-03-261-76/+0
| | | | | | | o smtp.rb: arguments discription of do_ready was wrongly void git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* o session.rb -> protocol.rbaamine2000-02-211-4/+31
| | | | | | | | | o write, write_pendstr takes block o smtp.ready o popmail.pop takes block git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Version 1.1.4aamine2000-01-211-2/+0
| | | | | | | o (HTTP) allow no content-length data git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e