[squeak-dev] The Trunk: Network-ct.263.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Dec 19 13:09:46 UTC 2022


Christoph Thiede uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-ct.263.mcz

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

Name: Network-ct.263
Author: ct
Time: 19 December 2022, 2:09:43.934027 pm
UUID: 5a4ff617-9d9e-3144-96a5-534b0cebac99
Ancestors: Network-tonyg.262

Fixes a slip in mail composition that produced invalid recipient addresses according to RFC-5321. Addresses must not contain leading or trailing spaces. Some SMTP servers (such as Gmail) refuse to send these message.

Thanks to Pete (PAP) for the report!

=============== Diff against Network-tonyg.262 ===============

Item was changed:
  ----- Method: MailComposition>>doSendMail (in category 'private') -----
  doSendMail
  
  	(SMTPClient openOnHostNamed: self smtpServer port: self smtpServerPort)
  		user: self smtpUser;
  		password: self smtpPassword;
  		login;
+ 		mailFrom: mailMessage from
+ 			to: ((mailMessage to findTokens: ',') collect: [:ea | ea withBlanksTrimmed])
+ 			text: mailMessage asSendableText.!
- 		mailFrom: mailMessage from to: (mailMessage to findTokens: ',') text: mailMessage asSendableText.!



More information about the Squeak-dev mailing list