Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/net/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ module Net
# * {IMAP URLAUTH Authorization Mechanism Registry}[https://www.iana.org/assignments/urlauth-authorization-mechanism-registry/urlauth-authorization-mechanism-registry.xhtml]
#
class IMAP < Protocol
VERSION = "0.5.12"
VERSION = "0.6.0-dev"

# Aliases for supported capabilities, to be used with the #enable command.
ENABLE_ALIASES = {
Expand Down
9 changes: 6 additions & 3 deletions lib/net/imap/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,9 @@ def defaults_hash
sasl_ir: true,
enforce_logindisabled: true,
max_response_size: 512 << 20, # 512 MiB
responses_without_block: :warn,
parser_use_deprecated_uidplus_data: :up_to_max_size,
parser_max_deprecated_uidplus_data_size: 100,
responses_without_block: :frozen_dup,
parser_use_deprecated_uidplus_data: false,
parser_max_deprecated_uidplus_data_size: 0,
).freeze

@global = default.new
Expand Down Expand Up @@ -525,6 +525,9 @@ def defaults_hash
version_defaults[0.7r] = Config[0.6r].dup.update(
).freeze

version_defaults[0.8r] = Config[0.7r].dup.update(
).freeze

# Safe conversions one way only:
# 0.6r.to_f == 0.6 # => true
# 0.6 .to_r == 0.6r # => false
Expand Down
5 changes: 0 additions & 5 deletions test/net/imap/test_imap_uidplus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
class IMAPUIDPlusTest < Net::IMAP::TestCase
include Net::IMAP::FakeServer::TestHelper

def setup
super
Net::IMAP.config.parser_use_deprecated_uidplus_data = false
end

def test_uidplus_appenduid
with_fake_server(select: "INBOX",
extensions: %i[UIDPLUS]) do |server, imap|
Expand Down
5 changes: 0 additions & 5 deletions test/net/imap/test_response_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ class ResponseParserTest < Net::IMAP::TestCase
include NetIMAPTestHelpers
extend NetIMAPTestHelpers::TestFixtureGenerators

def setup
super
Net::IMAP.config.parser_use_deprecated_uidplus_data = false
end

############################################################################
# Tests that do no more than parse an example response and assert the result
# data has the correct values have been moved to yml test fixtures.
Expand Down