Skip to content

BUG: Missing validation for unclosed angle bracket in parseEmailAddress #863

@andrinoff

Description

@andrinoff

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

  1. Input an email address like User Name <user@example.com (no closing bracket)
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomersneeds-responseWaiting on issue author replystaleNo activity for extended period

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions