зеркало из https://github.com/mozilla/pjs.git
add comma separator between addresses, remove null byte in msg hdr yarn
This commit is contained in:
Родитель
9c15ab1564
Коммит
5259ab18ba
|
@ -222,6 +222,9 @@ NS_IMETHODIMP nsMsgHdr::SetRecipientsArray(const char *names, const char *addres
|
|||
|
||||
for (int i = 0; i < numAddresses; i++)
|
||||
{
|
||||
if (i > 0)
|
||||
allRecipients += ", ";
|
||||
|
||||
if (strlen(curName))
|
||||
{
|
||||
allRecipients = curName;
|
||||
|
@ -261,6 +264,9 @@ NS_IMETHODIMP nsMsgHdr::SetCCListArray(const char *names, const char *addresses,
|
|||
|
||||
for (int i = 0; i < numAddresses; i++)
|
||||
{
|
||||
if (i > 0)
|
||||
allRecipients += ", ";
|
||||
|
||||
if (strlen(curName))
|
||||
{
|
||||
allRecipients += curName;
|
||||
|
@ -371,7 +377,7 @@ nsresult nsMsgHdr::SetStringColumn(const char *str, mdb_token token)
|
|||
struct mdbYarn yarn;
|
||||
yarn.mYarn_Buf = (void *) (str ? str : "");
|
||||
yarn.mYarn_Size = PL_strlen((const char *) yarn.mYarn_Buf) + 1;
|
||||
yarn.mYarn_Fill = yarn.mYarn_Size;
|
||||
yarn.mYarn_Fill = yarn.mYarn_Size - 1;
|
||||
yarn.mYarn_Form = 0;
|
||||
yarn.mYarn_Grow = NULL;
|
||||
return m_mdbRow->AddColumn(m_mdb->GetEnv(), token, &yarn);
|
||||
|
|
Загрузка…
Ссылка в новой задаче