Permalink
Browse files

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

  • Loading branch information...
1 parent 7809f7c commit 4a6f8764329bbab54832f0b789368877f3b9ff2c @Aqua-Ye Aqua-Ye committed Feb 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 stdlib/web/mail/mime.opa
View
2 stdlib/web/mail/mime.opa
@@ -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)

0 comments on commit 4a6f876

Please sign in to comment.