notifyall: enclose senders name in quotation marks #601
Labels
No labels
2018.09
2019.01
2019.03
2019.06
2019.09
2019.12
2020.03
2020.06
2020.09
2020.12
2021.03
2021.07
2021.09
2022.02
2022.06
2022.09
2022.12
2023.04
2023.05
2023.09
2024.03
2024.06
2024.09
2024.12
dependencies
Hackathon 2021
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-addons#601
Loading…
Reference in a new issue
No description provided.
Delete branch "20180513-4976"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
enclose the senders name construct
with quotation marks so it does not get interpreted as multible email addresses.
this might solve friendica/friendica#4976
Else this looks okay.
There are some style issues - and I'm asking myself if these quotation marks are really needed.
Small thing is left to fix (aside what others have requested).
The thing without the quotation mark is that
is interpreted as list of local email addresses due the comma which results in a FROM field of the email with many addresses which is not correct.
Putting quotes around them
make the sender name "adam, nodes name administrator" with the email address "noreply@examplle.com".
Have you checked the RFC how to do it? I have the feeling that
Name <user@domain.tld>
should be the correct way to write it down and that"Name" user@domain.tld
is more some Microsoft Outlook "invention".I would completely get rid of the name part for the From field and just use the plain sender mail address from the admin panel.
It's okay to use "$admin-name, $node-name Administrator" for the final salute (?) 😂 (don't know Grußformel in English) in the last line of the mail body. Just like we do in registration mails.
Would it affect the email sender display if we removed the name? If yes, I'm against it, it's awful to receive an email from just "noreply@example.com".
The problem is that there is a comma in the sender name. With that you get an address list. The parts without an actual email address are interpreted as local accounts on the sender server. If there is only spaces in the sender name, no problem.
You can circumvent the list by surrounding the name with quotation marks.
The other solution is not to use a comma in the sender name. Or leave the name out of the FROM field. I actually like to see the name of my communication partner there So I opted for the quotation marks.
Okay. I checked the From field of a "user deleted his account" mail. It looks like this:
From: LIBRANET.de <admin@libranet.de>
Better?
Thank you for finding these.
C'mon, I updated 3 minutes ago. And this was merged 2 minutes ago. 😁
Updating again...
Looking good! 👍
From: "Steffen K9, LIBRANET.de Administrator" <admin@libranet.de>
Fixes #4976