aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net/imap.rb
Commit message (Collapse)AuthorAgeFilesLines
* stdlib: avoid extra calls to eliminate "\n" from Base64normal2016-01-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | We may use the '0' (zero) to avoid adding the line feed. Furthermore, the '*' (asterisk) modifier is not needed for a single-element arrays. * ext/psych/lib/psych/visitors/yaml_tree.rb (visit_String): eliminate chomp * lib/net/http.rb (connect): eliminate delete * lib/net/http/header.rb (basic_encode): ditto * lib/net/imap.rb (authenticate): eliminate gsub (self.encode_utf7): shorten delete arg * lib/net/smtp.rb (base64_encode): eliminate gsub * lib/open-uri.rb (OpenURI.open_http): eliminate delete * lib/rss/rss.rb: ditto * lib/securerandom.rb (base64): ditto (urlsafe_base64): eliminate delete! * lib/webrick/httpauth/digestauth.rb (split_param_value): eliminate chop * lib/webrick/httpproxy.rb (do_CONNECT): eliminate delete (setup_upstream_proxy_authentication): ditto [ruby-core:72666] [Feature #11938] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* [DOC] Fix typosa_matsuda2015-12-231-1/+1
| | | | | | | | | | | | | | | | | * benchmark.rb * getoptlong.rb * irb.rb * net/http.rb * net/http/header.rb * net/imap.rb * optparse.rb * pstore.rb * webrick.rb * xmlrpc.rb [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: remove an empty comment line and -*-.shugo2015-10-231-2/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap (idle): add a new argument timeout for keep-alive.shugo2015-10-221-2/+12
| | | | | | [ruby-core:63693] [Bug #10031] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: use frozen_string_literal: true.shugo2015-10-091-3/+5
| | | | | | | | * test/net/imap/test_imap.rb: ditto. * test/net/imap/test_imap_response_parser.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (body_ext_mpart): should work even if body-fld-dspshugo2015-05-081-1/+7
| | | | | | is omitted. [ruby-core:69093] [Bug #11128] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (move, uid_move): support the MOVE command definedshugo2015-04-221-0/+14
| | | | | | | in RFC6851. Patch by ojab ojab. [ruby-core:68960] [Feature #11077] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: Fix undefined variable usage & refactor/DRYshugo2014-12-061-8/+37
| | | | | | | | code. Patch by @aledovsky. [Fixes GH-770] * test/net/test_imap.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (Net::IMAP::ResponseParser::BEG_REGEXP): no need to use embbedusa2014-11-201-3/+3
| | | | | | | string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.svn2014-11-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (search_response): parse MODSEQ in SEARCHshugo2014-11-131-1/+8
| | | | | | responses properly. [ruby-core:64203] [Bug #10112] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Document that Net::IMAP#fetch will return nil instead of an emtpy array.knu2014-10-311-2/+4
| | | | | | | * lib/net/imap.rb (Net::IMAP#fetch): [DOC] Document that Net::IMAP#fetch will return nil instead of an emtpy array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: split executable code into sample directory.hsbt2014-08-211-170/+0
| | | | | | * sample/net-imap.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: removed commented-out code.hsbt2014-08-211-33/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (Net::IMAP#fetch): [DOC] Describe how a range inknu2014-06-231-7/+16
| | | | | | +set+ is interpreted, and mention -1 which can be used for '*'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (body_type_1part): Gmail IMAP reports a bodyshugo2014-06-031-0/+9
| | | | | | | type as "MIXED" followed immediately by params [ruby-core:62864] [Bug #9885] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (Net::IMAP#initialize): Close the opened socket whenakr2014-05-281-32/+35
| | | | | | | | | | | any exception occur. This fixes a fd leak by IMAPTest#test_imaps_post_connection_check which start_tls_session() raises an exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: Proofreading docs. [ruby-core:61931][Bug #9720]hsbt2014-05-021-75/+74
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (capability_response): should ignore trailingshugo2013-06-051-0/+1
| | | | | | | | spaces. Thanks, Peter Kovacs. [ruby-core:55024] [Bug #8415] * test/net/imap/test_imap_response_parser.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (getacl_response): parse the mailbox of an ACLshugo2013-04-231-3/+3
| | | | | | response correctly. [ruby-core:54365] [Bug #8281] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (body_type_msg): should acceptshugo2013-04-191-20/+19
| | | | | | | | | message/delivery-status with extra data. [ruby-core:53741] [Bug #8167] * test/net/imap/test_imap_response_parser.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove trailing spaces.nobu2012-11-201-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: fix Net::IMAP::ResponseParser to acceptshugo2012-10-171-0/+36
| | | | | | | | | | message/delivery-status ([ruby-core:47920] [Bug #7146]), message/rfc822 attachments ([ruby-core:47921] [Bug #7147]), and (BODY ("MIXED")) ([ruby-core:47951] [Bug #7153]). * test/net/imap/test_imap_response_parser.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove trainling spaces.nobu2012-08-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (decode_utf7, encode_utf7): refactored byshugo2012-05-091-12/+7
| | | | | | Nobuyoshi Nakada, to use String#encode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (body_type_attachment): parse body typeshugo2012-05-071-0/+29
| | | | | | "ATTACHMENT". [ruby-core:44849] [Bug #6397] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* see OpenSSL::SSLnobu2012-04-231-2/+2
| | | | | | | * lib/net/imap.rb (Net::IMAP): see if actually used SSL is defined to get rid of autoloaded OpenSSL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (initialize): raise Net::IMAP::Error when theshugo2012-03-161-0/+4
| | | | | | | connection is closed without a greeting response. [ruby-core:40938] [Bug #5616] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (rfc822_text): ignore [] after RFC822.shugo2012-03-161-0/+5
| | | | | | [ruby-core:40945] [Bug #5620] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: includes the sequence number of UID in a errorshugo2011-12-111-3/+3
| | | | | | | message. suggested by art lussos. [ruby-core:41413] [Feature #5692] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (default_port, default_imap_port,shugo2011-09-041-0/+16
| | | | | | | | default_tls_port, default_ssl_port, default_imaps_port): added methods for consistency with Net::POP. based on the patch by art lussos. [ruby-core:38997] [Bug #5198] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (idle): raises a Net::IMAP::Error when theshugo2011-08-191-3/+13
| | | | | | | connection is closed. based on the patch by Hugo Barauna. [Bug #5190] [ruby-core:38930] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (msg_att): accepts extra space before ')'.shugo2011-08-191-1/+1
| | | | | | based on the patch by art lussos. [Bug #5163] [ruby-core:38820] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: fix typo in document.akr2011-08-101-1/+1
| | | | | | | | | | * lib/net/http.rb: ditto. * lib/net/imap.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (search_response): parses SEARCH responses fromshugo2011-06-161-1/+2
| | | | | | the Yahoo IMAP server correctly. patched by Mark Nadig. [Bug #4509] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib: revert r31635-r31638 and untabify with expand(1).nobu2011-05-191-57/+57
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/benchmark.rb: Fix indentation.drbrain2011-05-181-44/+44
| | | | | | | * lib/net/imap.rb: Fix indentation of regular expressions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: Fix indentation of EOF for heredoc.drbrain2011-05-181-2/+2
| | | | | | | * lib/debug.rb (Commands): Fix indentation of EOHELP for heredoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib: Convert tabs to spaces for ruby files perdrbrain2011-05-181-175/+175
| | | | | | | | | http://redmine.ruby-lang.org/projects/ruby/wiki/DeveloperHowto#coding-style Patch by Steve Klabnik [Ruby 1.9 - Bug #4730] Patch by Jason Dew [Ruby 1.9 - Feature #4718] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2011-05-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: use bytesize for binary strings.naruse2011-01-141-2/+2
| | | | | | patched by Yoshimasa Niwa. [ruby-core:34222] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (xlist): supported the XLIST command, which is anshugo2010-12-071-1/+33
| | | | | | | extension by Apple and Google. patch by Geoff Youngs. [ruby-core:33521] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/*.rb: Remove unused variable warnings.marcandre2010-11-081-1/+0
| | | | | | Patch by Run Paint [ruby-core:30991] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: load io/console.nobu2010-07-301-3/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (example): use IO#noecho to read password ifnobu2010-07-301-5/+5
| | | | | | possible, and defer until needed. [ruby-dev:41889] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (example): support starttls option.nobu2010-07-301-6/+10
| | | | | | [ruby-dev:41888] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (disconnect): closes the socket of a Net::IMAPshugo2010-05-191-1/+5
| | | | | | object only when it is not closed. [ruby-dev:41350] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (disconnect): terminates @receiver_thread even ifshugo2010-05-081-1/+7
| | | | | | @sock.shutdown raises an exception. [ruby-dev:34881] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (fetch_internal): do not quote message data itemshugo2010-04-251-1/+7
| | | | | | names. Thanks, Eric Hodel. [ruby-core:23508] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap (encode_utf7): encode & properly. Thanks, Kengoshugo2010-04-141-1/+1
| | | | | | Matsuyama. [ruby-dev:38063] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e