зеркало из https://github.com/mozilla/gecko-dev.git
fixed bug 11892 - [dogfood] When Name or Address of a recipient includes 8-bit characters address is incorrectly formed; not quoting name part of an email address; calling GetPath() instead of GetFileName() for all recipients; r=rhp, mscott
This commit is contained in:
Родитель
6bd71d2ece
Коммит
b534ab7406
|
@ -278,8 +278,18 @@ nsresult nsSmtpUrl::ParseUrl()
|
|||
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
// the recipients should consist of just the path part up to to the query part
|
||||
// the recipients should consist of just the path part up to to the query
|
||||
// part
|
||||
#ifdef BUG11892
|
||||
// ** jefft -- for ecoded word recipient the above assumption may be
|
||||
// incorrect. A typical ecoded word recipient has the following form
|
||||
// =?iso-8859-1?Q?M=E5levi=E7h?= 2 <momoi@netscape.com>
|
||||
// which definitely screws up the standard url parsing. The following
|
||||
// statements are questionable.
|
||||
|
||||
rv = GetFileName(&m_toPart);
|
||||
#endif
|
||||
rv = GetPath(&m_toPart);
|
||||
|
||||
// now parse out the search field...
|
||||
char * searchPart = nsnull;
|
||||
|
|
|
@ -744,12 +744,16 @@ static int msg_parse_Header_addresses (const char *line, char **names, char **ad
|
|||
|
||||
/* Now re-quote the names and addresses if necessary.
|
||||
*/
|
||||
#ifdef BUG11892
|
||||
// **** jefft - we don't want and shouldn't to requtoe the name, this
|
||||
// violate the RFC822 spec
|
||||
if (quote_names_p && names)
|
||||
{
|
||||
int L = name_out - name_start - 1;
|
||||
L = msg_quote_phrase_or_addr(name_start, L, PR_FALSE);
|
||||
name_out = name_start + L + 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (quote_addrs_p && addresses)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче