sogo
sogo copied to clipboard
Fix #1158: Allow mail addresses with different full names
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 "" |
Nice work, this will likely be integrated in SOGo v2.5.
@alinto: What is the status of this PR?