parsimony/internal/archive
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 0a21e998e7 fix(archive): bound the multipart walk and distrust extreme dates
- walk at most 10 nested multipart levels and 100 parts, then use what
  was found: the post is still delivered, the archive stores less
- read a text part only while it can still become the body, and stop at
  the first non-blank plain part, so memory stays near MaxBody
- a Date more than 24 hours after the time of parsing becomes that time;
  a Date before 1990 is treated as missing
- tests: 20000-level nesting finishes fast, exact limits, allocation
  bound, pathological HTML, date clamps
2026-11-10 11:51:13 +01:00
..
archive.go fix(archive): bound the multipart walk and distrust extreme dates 2026-11-10 11:51:13 +01:00
archive_test.go fix(archive): bound the multipart walk and distrust extreme dates 2026-11-10 11:51:13 +01:00
import.go feat(archive): import messages from an mbox 2026-11-09 17:14:46 +01:00
import_test.go feat(archive): import messages from an mbox 2026-11-09 17:14:46 +01:00