summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-20 00:45:08 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-20 00:45:08 +0000
commit92d28f6b8fd2ca3f0851af4aa02df96b96ff83eb (patch)
tree7855b9586b5abb326da25eda3d772616662de781 /lib
parentd3f545235a00b1ae8f01e4cc9132885411b0bdd8 (diff)
* lib/net/imap.rb: allow extra spaces in responses.
Thanks, Tom Soderlund. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/imap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 5323b9333d..21f85bf57c 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -1785,7 +1785,7 @@ module Net
T_TEXT = :TEXT
BEG_REGEXP = /\G(?:\
-(?# 1: SPACE )( )|\
+(?# 1: SPACE )( +)|\
(?# 2: NIL )(NIL)(?=[\x80-\xff(){ \x00-\x1f\x7f%*"\\\[\]+])|\
(?# 3: NUMBER )(\d+)(?=[\x80-\xff(){ \x00-\x1f\x7f%*"\\\[\]+])|\
(?# 4: ATOM )([^\x80-\xff(){ \x00-\x1f\x7f%*"\\\[\]+]+)|\