Skip to content

fix: email truncation to preserve domain and enforce max width#606

Merged
andrinoff merged 3 commits intofloatpane:masterfrom
ritikaa1802:fix-email-truncation
Apr 16, 2026
Merged

fix: email truncation to preserve domain and enforce max width#606
andrinoff merged 3 commits intofloatpane:masterfrom
ritikaa1802:fix-email-truncation

Conversation

@ritikaa1802
Copy link
Copy Markdown
Contributor

@ritikaa1802 ritikaa1802 commented Apr 16, 2026

The current truncateEmail function only truncates the local part and removes the domain.

This fix:

  • Preserves both local and domain
  • Improves readability

Example:
verylongemail@gmail.comverylo...@gmail.com

Fixes #545

@ritikaa1802 ritikaa1802 requested a review from a team as a code owner April 16, 2026 13:45
@github-actions github-actions bot added the bug Something isn't working label Apr 16, 2026
@ritikaa1802
Copy link
Copy Markdown
Contributor Author

Hi, I’ve implemented the fix based on the discussed approach.

Would love your feedback.

@andrinoff andrinoff changed the title Fix email truncation to preserve domain and enforce max width fix: email truncation to preserve domain and enforce max width Apr 16, 2026
Signed-off-by: drew <me@andrinoff.com>
Signed-off-by: drew <me@andrinoff.com>
Copy link
Copy Markdown
Member

@andrinoff andrinoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment thread tui/inbox.go Outdated
@andrinoff andrinoff merged commit c027315 into floatpane:master Apr 16, 2026
11 checks passed
@ritikaa1802
Copy link
Copy Markdown
Contributor Author

Glad! it helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Improve email truncation logic

2 participants