[squeak-dev] The Inbox: System-jar.1246.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Nov 12 21:29:37 UTC 2021


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

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

Name: System-jar.1246
Author: jar
Time: 12 November 2021, 10:29:31.63687 pm
UUID: 89decfa1-5dbe-6341-8638-c070b5a29f17
Ancestors: System-eem.1245

Allow empty credentials (user name and password) when composing a mail message.

Currently, the MailSender class forces users to use non empty usernames and passwords. This prevents applications fro using a simple no authentication SMTP server - e.g. the Squeak Inbox Talk tool (ct). Together with Network-jar.250 modification of the SMTPClient login method this change will allow using No Auth SMTP server for sending mail messages from Squeak.

=============== Diff against System-eem.1245 ===============

Item was removed:
- ----- Method: MailSender class>>isUserNameSet (in category 'testing') -----
- isUserNameSet
- 	^ UserName notNil and: [UserName notEmpty]
- !

Item was removed:
- ----- Method: MailSender class>>isUserPasswordSet (in category 'testing') -----
- isUserPasswordSet
- 	^ UserPassword notNil and: [UserPassword notEmpty]
- !

Item was changed:
  ----- Method: MailSender class>>userName (in category 'accessing') -----
  userName
+ 	"Answer the user name to be used for sending out messages. Leave empty if authentication not required."
- 	"Answer the user name to be used for sending out messages."
  
+ 	UserName ifNil: [self setUserName].
- 	self isUserNameSet ifFalse: [self setUserName].
- 
- 	UserName isEmpty ifTrue: [ self error: 'no user name specified' ].
- 
  	^UserName!

Item was changed:
  ----- Method: MailSender class>>userPassword (in category 'accessing') -----
  userPassword
+ 	"Answer the user password to be used for sending out messages. Leave empty if authentication not required."
  
+ 	UserPassword ifNil: [self setUserPassword].
+ 	^UserPassword!
- 	self isUserPasswordSet ifFalse: [self setUserPassword].
- 
- 	UserPassword isEmpty ifTrue: [ self error: 'no user name specified' ].
- 
- 	^ UserPassword!



More information about the Squeak-dev mailing list