matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Composer does not validate email addresses in To/Cc/Bcc

Open andrinoff opened this issue 7 months ago • 1 comments

Describe the bug: Composer accepts invalid email addresses. Can send to "notanemail" or "user@" without validation. SMTP rejects later with unclear error.

To reproduce:

  1. Compose new email
  2. Enter "invalid" in To field
  3. Send - SMTP error appears
  4. Should validate before send attempt

Expected behavior: Validate email format in real-time or before send:

  • Check for @ symbol
  • Validate domain part
  • Show error: "Invalid email address: invalid"

Additional context:

  • File: tui/composer.go
  • Use mail.ParseAddress() for validation
  • Show inline error in red
  • Severity: Low - UX issue
  • Complexity: Easy - email validation

andrinoff avatar Apr 16 '26 20:04 andrinoff

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.

floatpanebot avatar May 17 '26 05:05 floatpanebot