Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[enhance] mime: try to recognize attachments before text/plain

  • Loading branch information...
commit 4a6f8764329bbab54832f0b789368877f3b9ff2c 1 parent 7809f7c
Frederic Ye Aqua-Ye authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  stdlib/web/mail/mime.opa
2  stdlib/web/mail/mime.opa
View
@@ -301,7 +301,7 @@ Mime = {{
| "multipart/related" ->
boundary = Header.extract_value("boundary", content_type_list)
multipart(body, boundary)
- | "text/plain" -> {plain=decoded_body}
+ // | "text/plain" -> {plain=decoded_body}
| "text/html" -> {html=Xhtml.of_string(decoded_body)}
| _ ->
match Header.find("Content-Disposition", headers)
Please sign in to comment.
Something went wrong with that request. Please try again.