Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358786

Summary: Better Email address validation is needed
Product: z_Archived Reporter: Sebastien Dubois <sebastien.dubois>
Component: MylynAssignee: Sebastien Dubois <sebastien.dubois>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: alvaro.sanchez-leon, lmcbout
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Sebastien Dubois CLA 2011-09-23 18:29:36 EDT
Currently, when trying to send emails from R4E, we only check if the email address is filled with some characters.  There is a need to validate the the email address is in a correct format.  We should introduce a validation method for this
Comment 1 Jacques Bouthillier CLA 2011-09-26 10:44:15 EDT
On LINUX environment, the SMTP mail should validate the destination, otherwise, a ComponentObjectModelException: null address occurs. When testing on window environment, an empty address or an invalid address trigger a pop-up and no exception .


LINUX tracing:
org.eclipse.core.runtime.CoreException: ComponentObjectModelException: Null address
	at org.eclipse.mylyn.reviews.r4e.mail.smtp.mailVersion.Smtp.sendEmail(Smtp.java:119)
	at org.eclipse.mylyn.reviews.r4e.mail.smtp.mailVersion.Smtp.sendEmailGraphical(Smtp.java:153)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.utils.MailServicesProxy.sendMessage(MailServicesProxy.java:305)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.utils.MailServicesProxy.sendQuestion(MailServicesProxy.java:275)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.commands.SendNotificationHandler$1.runInUIThread(SendNotificationHandler.java:124)
	at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
Comment 2 Sebastien Dubois CLA 2011-10-05 23:08:53 EDT
*** Bug 359751 has been marked as a duplicate of this bug. ***
Comment 3 Sebastien Dubois CLA 2011-10-17 11:39:51 EDT
All email addresses are now validated according to RFC5322.  Invalid values are flagged to the user and will not be accepted