matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Unsafe type assertion without ok check in fetcher

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug Type assertion at fetcher/fetcher.go:883 on p.Header without ok check. Malformed MIME headers cause panic.

To reproduce

  1. Receive email with malformed MIME structure
  2. Type assertion fails
  3. 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

andrinoff avatar Apr 21 '26 14:04 andrinoff

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.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot