HF RL Explorer

Header injection / HeaderWriteError when metadata values contain non- \n line boundaries

Header injection / HeaderWriteError when metadata values contain non- \n line boundaries: a task in repo2rlenv-swe-next (Harbor dataset). When writing RFC 822 metadata, the RFC822Policy only folds \n into continuation lines. Python's str.splitlines() (which the email generator uses internally)…

The task

When writing RFC 822 metadata, the `RFC822Policy` only folds `\n` into continuation lines. Python's `str.splitlines()` (which the email generator uses internally) recognizes several other line boundary characters: bare `\r`, vertical tab (`\v` / `\x0b`), form feed (`\f` / `\x0c`), `\x1c`–`\x1e`, `\x85`, U+2028, and…

Part of FineEnvs/repo2rlenv-swe-next.