make custom db headers a space delimited list, not comma, follow on to 356860, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@216899 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -345,7 +345,7 @@ nsresult nsImapProtocol::GlobalInitialization()
|
||||
prefBranch->GetIntPref("mailnews.tcptimeout", &gResponseTimeout);
|
||||
nsXPIDLCString customDBHeaders;
|
||||
prefBranch->GetCharPref("mailnews.customDBHeaders", getter_Copies(customDBHeaders));
|
||||
gCustomDBHeaders.ParseString(customDBHeaders, ", ");
|
||||
gCustomDBHeaders.ParseString(customDBHeaders, " ");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -478,7 +478,7 @@ nsParseMailMessageState::nsParseMailMessageState()
|
||||
|
||||
// setup handling of custom db headers, headers that are added to .msf files
|
||||
// as properties of the nsMsgHdr objects, controlled by the
|
||||
// pref mailnews.customDBHeaders.
|
||||
// pref mailnews.customDBHeaders, a space-delimited list of headers.
|
||||
// E.g., if mailnews.customDBHeaders is "X-Spam-Score", and we're parsing
|
||||
// a mail message with the X-Spam-Score header, we'll set the
|
||||
// "x-spam-score" property of nsMsgHdr to the value of the header.
|
||||
@@ -489,7 +489,7 @@ nsParseMailMessageState::nsParseMailMessageState()
|
||||
{
|
||||
pPrefBranch->GetCharPref("mailnews.customDBHeaders", getter_Copies(customDBHeaders));
|
||||
ToLowerCase(customDBHeaders);
|
||||
m_customDBHeaders.ParseString(customDBHeaders, ", ");
|
||||
m_customDBHeaders.ParseString(customDBHeaders, " ");
|
||||
if (m_customDBHeaders.Count())
|
||||
{
|
||||
m_customDBHeaderValues = new struct message_header [m_customDBHeaders.Count()];
|
||||
|
||||
@@ -380,6 +380,7 @@ pref("ldap_2.prefs_migrated", false);
|
||||
|
||||
pref("mailnews.confirm.moveFoldersToTrash", true);
|
||||
|
||||
// space-delimited list of extra headers to add to .msf file
|
||||
pref("mailnews.customDBHeaders", "");
|
||||
|
||||
pref("mailnews.reuse_message_window", true);
|
||||
|
||||
Reference in New Issue
Block a user