可以根据发出entry的 iDate, iDescription, iDetails这三个进行查找,你先保存发出entry的iDate, iDescription, iDetails或其中的一个,下面给你贴出遍历的代码:
TMsvId oldContext = iServerEntry->Entry().Id(); // save current entry id
User::LeaveIfError(iServerEntry->SetEntry(KMsvRootIndexEntryId));
CMsvEntrySelection* sel = new (ELeave) CMsvEntrySelection; CleanupStack::PushL(sel); User::LeaveIfError(iServerEntry->GetChildrenWithMtm(KPkiSmtpTechnologyTypeUid, *sel));
TInt count = sel->Count(); for(TInt ii = 0; ii < count; ii++) { User::LeaveIfError(iServerEntry->SetEntry(sel->At(ii))); TMsvEntry entry = iServerEntry->Entry(); // check entry } CleanupStack::PopAndDestroy(sel); User::LeaveIfError(iServerEntry->SetEntry(oldContext)); // resume old entry id |