зеркало из https://github.com/mozilla/pjs.git
fix custom headers available operators, r/sr=mscott, a=chofmann, part of 224318
This commit is contained in:
Родитель
4dcd37b9b7
Коммит
7dec6aca11
|
@ -615,8 +615,12 @@ nsMsgSearchValidityManager::InitOfflineMailFilterTable()
|
|||
|
||||
m_offlineMailFilterTable->SetAvailable (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::Contains, 1);
|
||||
m_offlineMailFilterTable->SetEnabled (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::Contains, 1);
|
||||
m_offlineMailFilterTable->SetAvailable (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::DoesntContain, 1);
|
||||
m_offlineMailFilterTable->SetEnabled (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::DoesntContain, 1);
|
||||
m_offlineMailFilterTable->SetAvailable (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::Is, 1);
|
||||
m_offlineMailFilterTable->SetEnabled (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::Is, 1);
|
||||
m_offlineMailFilterTable->SetAvailable (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::Isnt, 1);
|
||||
m_offlineMailFilterTable->SetEnabled (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::Isnt, 1);
|
||||
m_offlineMailFilterTable->SetAvailable (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::BeginsWith, 1);
|
||||
m_offlineMailFilterTable->SetEnabled (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::BeginsWith, 1);
|
||||
m_offlineMailFilterTable->SetAvailable (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::EndsWith, 1);
|
||||
|
|
|
@ -971,7 +971,7 @@ nsMsgSearchValidityTable::GetAvailableOperators(nsMsgSearchAttribValue aAttribut
|
|||
if (aAttribute == nsMsgSearchAttrib::Default)
|
||||
attr = m_defaultAttrib;
|
||||
else
|
||||
attr = aAttribute;
|
||||
attr = PR_MIN(aAttribute, nsMsgSearchAttrib::OtherHeader);
|
||||
|
||||
PRUint32 totalOperators=0;
|
||||
PRInt32 i;
|
||||
|
|
Загрузка…
Ссылка в новой задаче