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 <user@example.com (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.
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
User Name <user@example.com(no closing bracket)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.