Integrated: 2641: Mbox parser fails on headers that start with newline
Erik Joelsson
erikj at openjdk.org
Fri Dec 19 19:23:08 UTC 2025
On Fri, 19 Dec 2025 15:06:00 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
> It seems that at least for Mailman 3 mbox data, header values will sometimes start on the next line, after a single space, instead of directly after a single space following the `:`. E.g. this:
>
>
> Subject:
> foo
>
>
> Instead of this:
>
>
> Subject: foo
>
>
> This patch adjusts the regexp used to parse mbox email headers to take this into account, by optionally matching this newline. Added a some more test to verify the various cases.
This pull request has now been integrated.
Changeset: a177a13d
Author: Erik Joelsson <erikj at openjdk.org>
URL: https://git.openjdk.org/skara/commit/a177a13df82a078740585683e430acce38596c2e
Stats: 52 lines in 2 files changed: 51 ins; 0 del; 1 mod
2641: Mbox parser fails on headers that start with newline
Reviewed-by: zsong
-------------
PR: https://git.openjdk.org/skara/pull/1748
More information about the skara-dev
mailing list