Difference between revisions of "User:Mikey/project2"

From CDOT Wiki
Jump to: navigation, search
(Created page with '== Project Name == [https://bugzilla.mozilla.org/show_bug.cgi?id=286760 Bug 286760 - Ending a mail address with a space in address book displays it wrong when composing] == Proj...')
 
Line 3: Line 3:
  
 
== Project Description ==
 
== Project Description ==
 
+
This project involves fixing a problem with saved email addresses ending with trailing spaces in the address book causing sent messages to be lost. For example, the user will enter a new contact entry with an email address followed by a space, such as "test@example.com " (minus the quotes) and saves it. In the compose window, they will select the email address that they just saved and send their message, but this message will not be delivered to the recipient.
  
 
== Project Leader(s) ==
 
== Project Leader(s) ==
Line 12: Line 12:
  
 
== Project Details ==
 
== Project Details ==
 +
After running the [http://mxr.mozilla.org/seamonkey/source/mailnews/mime/test/unit/test_nsIMsgHeaderParser1.js test] with additional test cases, I found that the trailing spaces given in the email address are not discarded when the email address is concatenated with the full name of the contact. For example, if the name of the contact is John Doe and the email address of the contact is "jdoe@example.com " (minus the quotes)(take note of the trailing space), the result would give "John Doe <jdoe@example.com >" (minus the quotes)(including the trailing space).
  
 +
My take on this is to remove the trailing spaces before the result is returned from the [http://mxr.mozilla.org/seamonkey/source/mailnews/mime/src/nsMsgHeaderParser.cpp#836 msg_quote_phrase_or_addr()].
  
 
== Project News ==
 
== Project News ==

Revision as of 19:50, 20 November 2009

Project Name

Bug 286760 - Ending a mail address with a space in address book displays it wrong when composing

Project Description

This project involves fixing a problem with saved email addresses ending with trailing spaces in the address book causing sent messages to be lost. For example, the user will enter a new contact entry with an email address followed by a space, such as "test@example.com " (minus the quotes) and saves it. In the compose window, they will select the email address that they just saved and send their message, but this message will not be delivered to the recipient.

Project Leader(s)

Michael Dennis

Project Contributor(s)

...

Project Details

After running the test with additional test cases, I found that the trailing spaces given in the email address are not discarded when the email address is concatenated with the full name of the contact. For example, if the name of the contact is John Doe and the email address of the contact is "jdoe@example.com " (minus the quotes)(take note of the trailing space), the result would give "John Doe <jdoe@example.com >" (minus the quotes)(including the trailing space).

My take on this is to remove the trailing spaces before the result is returned from the msg_quote_phrase_or_addr().

Project News