[squeak-dev] The Trunk: Network-eem.201.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jun 14 18:08:07 UTC 2017

Eliot Miranda uploaded a new version of Network to project The Trunk:

==================== 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: ', ')!

More information about the Squeak-dev mailing list