From cd01dd1c73f85cea2dc39399c02c24f4a8133bd2 Mon Sep 17 00:00:00 2001 From: nick evans Date: Fri, 1 May 2026 13:54:49 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Disallow=20max=5Fnon=5Fsynchroni?= =?UTF-8?q?zing=5Fliteral=20=3D=20nil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was a copy/paste error. Setting `max_non_synchronizing_literal` to `nil` will result in `send_literal` raising an exception. As is already documented, non-synchronizing literals can be disabled by setting this config option to `-1`. --- lib/net/imap/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/imap/config.rb b/lib/net/imap/config.rb index 4c309f7b..411ce8ef 100644 --- a/lib/net/imap/config.rb +++ b/lib/net/imap/config.rb @@ -310,7 +310,7 @@ def self.[](config) # # * original: +-1+ (_never_ send non-synchronizing literals) # * +0.6+: 16 KiB - attr_accessor :max_non_synchronizing_literal, type: Integer?, defaults: { + attr_accessor :max_non_synchronizing_literal, type: Integer, defaults: { 0.0r => -1, 0.6r => 16 << 16, # 16 KiB }