matcha
matcha copied to clipboard
BUG: Missing validation for unclosed angle bracket in parseEmailAddress
Describe the bug
In parseEmailAddress() (main.go:2087-2099), when a < is found but no closing >, the function extracts everything from < to end of string as the email address. This returns malformed email addresses.
To reproduce
- Input an email address like
User Name <[email protected](no closing bracket) - The parsed email will include trailing garbage
Expected behavior
If no closing > is found after <, the function should return an error or fallback to treating the whole string as a plain address.
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.