[squeak-dev] The Inbox: Network-jar.250.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Nov 12 21:07:28 UTC 2021


A new version of Network was added to project The Inbox:
http://source.squeak.org/inbox/Network-jar.250.mcz

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

Name: Network-jar.250
Author: jar
Time: 12 November 2021, 10:07:25.383788 pm
UUID: fe957845-b8bb-e143-8e58-e4e886f51bac
Ancestors: Network-eem.249

Allow No authentication SMTP login for an empty username (in addition to a nil username). 

Currently, if the username is nil the AUTH LOGIN command won't be sent; however if the username is empty ('') the AUTH LOGIN will be sent and the server may not like it and return an error message. This behavior prevents Squeak Inbox Talk tool (ct) from using simple no auth SMTP server to send messages.

=============== Diff against Network-eem.249 ===============

Item was changed:
  ----- Method: SMTPClient>>login (in category 'private protocol') -----
  login
  	"Send HELO first"
  	self initiateSession.
  	self user ifNil: [^self].
+ 	self user ifEmpty: [^self].
  	self sendCommand: 'AUTH LOGIN ' , (self encodeString: self user).
  	[self checkResponse]
  		on: TelnetProtocolError
  		do: [ :ex | ex isCommandUnrecognized ifTrue: [^ self] ifFalse: [ex pass]].
  	self sendCommand: (self encodeString: self password).
  	self checkResponse!



More information about the Squeak-dev mailing list