зеркало из https://github.com/github/ruby.git
* 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:
Родитель
3081e11166
Коммит
fcd05a98fb
|
@ -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>
|
||||
|
||||
* lib/cmath.rb: reverted experimental r23900.
|
||||
|
|
|
@ -1282,9 +1282,15 @@ module Net
|
|||
end
|
||||
|
||||
def fetch_internal(cmd, set, attr)
|
||||
if attr.instance_of?(String)
|
||||
case attr
|
||||
when String then
|
||||
attr = RawData.new(attr)
|
||||
when Array then
|
||||
attr = attr.map { |arg|
|
||||
arg.is_a?(String) ? RawData.new(arg) : arg
|
||||
}
|
||||
end
|
||||
|
||||
synchronize do
|
||||
@responses.delete("FETCH")
|
||||
send_command(cmd, MessageSet.new(set), attr)
|
||||
|
|
Загрузка…
Ссылка в новой задаче