Skip to content

Zipdownload: fix escaping in Mbox downloads#10151

Open
gurnec wants to merge 3 commits into
roundcube:masterfrom
gurnec:zipdownload-mbox
Open

Zipdownload: fix escaping in Mbox downloads#10151
gurnec wants to merge 3 commits into
roundcube:masterfrom
gurnec:zipdownload-mbox

Conversation

@gurnec
Copy link
Copy Markdown
Contributor

@gurnec gurnec commented Apr 24, 2026

Closes #10150.

This unfortunately adds some extra complication... a simpler alternative might be slurp each entire email into a variable and just preg_replace() it all at once in _download_messages(). That would add additional memory overhead though.

@gurnec gurnec force-pushed the zipdownload-mbox branch 2 times, most recently from 7e9bc04 to 9ecb474 Compare May 2, 2026 11:04
@gurnec gurnec force-pushed the zipdownload-mbox branch 2 times, most recently from a965d1f to 0cad7a6 Compare May 12, 2026 19:47
gurnec added 3 commits May 13, 2026 18:43
This checks an Mbox download has a properly escaped From line,
and also checks at least some content of each zipped file
(which as a side effect verifies the zips' CRCs).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zipdownload's Mbox format does not escape "From " lines

1 participant