[PR #1768] [MERGED] fix: properly quote email sender names containing @ symbols #3667

Closed
opened 2026-03-22 14:50:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/1768
Author: @maggch97
Created: 11/7/2025
Status: Merged
Merged: 11/7/2025
Merged by: @kolaente

Base: mainHead: user/weijiezhao/mailwith@


📝 Commits (1)

  • 9eccd79 fix: properly quote email sender names containing @ symbols

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 pkg/user/user.go (+7 -1)

📄 Description

When user names contain @ symbols, the email library fails to parse the sender address format "Name @ Symbol via Vikunja email@domain.com". This fix uses Go's net/mail.Address to properly format the sender address according to RFC 5322, which automatically quotes names containing special characters.

Fixes the error: "getting sender address: no FROM address set"


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/1768 **Author:** [@maggch97](https://github.com/maggch97) **Created:** 11/7/2025 **Status:** ✅ Merged **Merged:** 11/7/2025 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `user/weijiezhao/mailwith@` --- ### 📝 Commits (1) - [`9eccd79`](https://github.com/go-vikunja/vikunja/commit/9eccd797a7bf5cba5f8b70db40a133e4f45c1670) fix: properly quote email sender names containing @ symbols ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `pkg/user/user.go` (+7 -1) </details> ### 📄 Description When user names contain @ symbols, the email library fails to parse the sender address format "Name @ Symbol via Vikunja <email@domain.com>". This fix uses Go's net/mail.Address to properly format the sender address according to RFC 5322, which automatically quotes names containing special characters. Fixes the error: "getting sender address: no FROM address set" --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-22 14:50:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#3667