The Trunk: Network-eem.200.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.200.mcz

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

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

Name: Network-eem.200
Author: eem
Time: 14 June 2017, 11:05:42.684733 am
UUID: 20a689fd-efcd-4072-8d8d-d2dc6cb99a70
Ancestors: Network-pre.199

Make sure that order orf addresses is preserved inMailMessage>>to: and hence fix MailMessageTest>>testCreateAReplyForFrom.

=============== Diff against Network-pre.199 ===============

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 uniqueMailAddresses |
+ sanitizedMailAddresses := MailAddressParser addressesIn: aString.
+ ^self setField: 'to' toString: (uniqueMailAddresses withoutDuplicates joinSeparatedBy: ', ')!
-
- | sanitizedMailAddresses |
- sanitizedMailAddresses := (MailAddressParser addressesIn: aString) asSet asArray.
- ^self setField: 'to' toString: (sanitizedMailAddresses joinSeparatedBy: ', ')!