mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/imap.rb (fetch_internal): do not quote message data item
names. Thanks, Eric Hodel. [ruby-core:23508] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3081e11166
commit
fcd05a98fb
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Apr 25 21:56:49 2010 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/net/imap.rb (fetch_internal): do not quote message data item
|
||||||
|
names. Thanks, Eric Hodel. [ruby-core:23508]
|
||||||
|
|
||||||
Sun Apr 25 15:59:02 2010 Tadayoshi Funaba <tadf@dotrb.org>
|
Sun Apr 25 15:59:02 2010 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* lib/cmath.rb: reverted experimental r23900.
|
* lib/cmath.rb: reverted experimental r23900.
|
||||||
|
|
|
@ -1282,9 +1282,15 @@ module Net
|
||||||
end
|
end
|
||||||
|
|
||||||
def fetch_internal(cmd, set, attr)
|
def fetch_internal(cmd, set, attr)
|
||||||
if attr.instance_of?(String)
|
case attr
|
||||||
|
when String then
|
||||||
attr = RawData.new(attr)
|
attr = RawData.new(attr)
|
||||||
|
when Array then
|
||||||
|
attr = attr.map { |arg|
|
||||||
|
arg.is_a?(String) ? RawData.new(arg) : arg
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
synchronize do
|
synchronize do
|
||||||
@responses.delete("FETCH")
|
@responses.delete("FETCH")
|
||||||
send_command(cmd, MessageSet.new(set), attr)
|
send_command(cmd, MessageSet.new(set), attr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue