Is your feature request related to a problem?
The address parsing logic in fetcher/fetcher.go (like formatAddress) is critical but lacks dedicated unit tests to cover edge cases.
Describe the solution you'd like
Add unit tests in fetcher/fetcher_test.go that cover various IMAP address formats, including empty names, special characters, and multiple addresses.
Describe alternatives you've considered
N/A
Additional context
Check fetcher/fetcher.go:formatAddress.
Is your feature request related to a problem?
The address parsing logic in
fetcher/fetcher.go(likeformatAddress) is critical but lacks dedicated unit tests to cover edge cases.Describe the solution you'd like
Add unit tests in
fetcher/fetcher_test.gothat cover various IMAP address formats, including empty names, special characters, and multiple addresses.Describe alternatives you've considered
N/A
Additional context
Check
fetcher/fetcher.go:formatAddress.