matcha
matcha copied to clipboard
BUG: Unsafe type assertion without ok check in fetcher
Describe the bug Type assertion at fetcher/fetcher.go:883 on p.Header without ok check. Malformed MIME headers cause panic.
To reproduce
- Receive email with malformed MIME structure
- Type assertion fails
- Application panics
Expected behavior Use type assertion with ok check: h, ok := p.Header.(*mail.InlineHeader)
Matcha version master
OS All
Additional context File: fetcher/fetcher.go line 883 Panic on unexpected header type
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.