When a user wants to use a special parser for a field, we apply Unstrctrd.without_comments and Unstrctd.fold_fws. Re-apply an unstructured parser (like what Unstructured_with_encoded_word) on it just fails (due to the missing last \r\n. The composition of user's parsers with what Mr.MIME does seems not really good.
We should rethink a bit the API about this part (and probably ask a parser in the form string -> 'a instead of 'a Angstrom.t).
When a user wants to use a special parser for a field, we apply
Unstrctrd.without_commentsandUnstrctd.fold_fws. Re-apply an unstructured parser (like whatUnstructured_with_encoded_word) on it just fails (due to the missing last\r\n. The composition of user's parsers with what Mr.MIME does seems not really good.We should rethink a bit the API about this part (and probably ask a parser in the form
string -> 'ainstead of'a Angstrom.t).