summaryrefslogtreecommitdiff
path: root/lib/net/imap.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/imap.rb')
-rw-r--r--lib/net/imap.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 439ca13206..88fccdbcce 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -2201,6 +2201,10 @@ module Net
else
result = response_tagged
end
+ while lookahead.symbol == T_SPACE
+ # Ignore trailing space for Microsoft Exchange Server
+ shift_token
+ end
match(T_CRLF)
match(T_EOF)
return result