Skip to content

Field parsers don't compose well when we apply them into resulted unstructured form of values #111

@dinosaure

Description

@dinosaure

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions