sogo icon indicating copy to clipboard operation
sogo copied to clipboard

Fix #1158: Allow mail addresses with different full names

Open skruppy opened this issue 10 years ago • 3 comments

As stated in http://www.sogo.nu/bugs/view.php?id=1158, the the MailFieldNames fields (like mail) can only contain a plain E-Mail address, without a full name like "Dude" [email protected]. If the value contains never the less a full value, something strange happened:

  • Since SOGo 2.2.1: The result would have been "Bro" <"Dude" [email protected]>
  • Before SOGo 2.2.1: The result would have been "Bro" [email protected] therefore the only sane values have been without a full name and "<>".

Now it is possible to have

  • E-Mail addresses without a full name
  • E-Mail addresses with a different full name

to accomplish this, without breaking backward compatibility for former sane configurations, the new behavior only kicks in if the value contains a "<". Depending on it's position, one of the two new E-Mails address types is selected. The mapping is as following:

Input Result Users fullName
[email protected] "Bro" [email protected] "Bro"
[email protected] [email protected] ""
[email protected] [email protected] "Bro" or ""
"Dude" [email protected] "Dude" [email protected] "Bro" or ""

skruppy avatar Mar 15 '14 21:03 skruppy

Nice work, this will likely be integrated in SOGo v2.5.

extrafu avatar Apr 03 '14 00:04 extrafu

really?

dasJ avatar Jul 22 '19 14:07 dasJ

@alinto: What is the status of this PR?

Neustradamus avatar Jul 31 '23 14:07 Neustradamus