The Trunk: Network-eem.201.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Network-eem.201.mcz

commits-2
Eliot Miranda uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-eem.201.mcz

==================== Summary ====================

Name: Network-eem.201
Author: eem
Time: 14 June 2017, 11:07:55.857848 am
UUID: 523568aa-fa41-4c8a-b646-34c8483f202c
Ancestors: Network-eem.200

Make sure that order orf addresses is preserved in MailMessage>>to: (correctly) and hence fix MailMessageTest>>testCreateAReplyForFrom.

=============== Diff against Network-eem.200 ===============

Item was changed:
  ----- Method: MailMessage>>to: (in category 'access') -----
  to: aString
  "Set the to address(es).  Make sure order is preserved when uniqueing the addresses."
+ | sanitizedMailAddresses |
- | sanitizedMailAddresses uniqueMailAddresses |
  sanitizedMailAddresses := MailAddressParser addressesIn: aString.
+ ^self setField: 'to' toString: (sanitizedMailAddresses withoutDuplicates joinSeparatedBy: ', ')!
- ^self setField: 'to' toString: (uniqueMailAddresses withoutDuplicates joinSeparatedBy: ', ')!