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:
bienvenu%nventure.com
2006-12-12 21:14:35 +00:00
parent e5846dc78c
commit 1e60671f8a
3 changed files with 4 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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()];

View File

@@ -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);