diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/imap.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 2e0f558054..9f8ad7b273 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -2374,6 +2374,8 @@ module Net return body_type_msg when /\A(?:ATTACHMENT)\z/ni return body_type_attachment + when /\A(?:MIXED)\z/ni + return body_type_mixed else return body_type_basic end @@ -2456,6 +2458,13 @@ module Net return BodyTypeAttachment.new(mtype, nil, param) end + def body_type_mixed + mtype = "MULTIPART" + msubtype = case_insensitive_string + param, disposition, language, extension = body_ext_mpart + return BodyTypeBasic.new(mtype, msubtype, param, nil, nil, nil, nil, nil, disposition, language, extension) + end + def body_type_mpart parts = [] while true |