I'writing some C++ code that receive a POP3 mail and load
some data in a DBMS inside Nokia 9210.
Problem:
When my function is called by OS...
on
....ProcessReceivedMessageL(const TMsvId& aEntryId)
...
iPOP3Mtm->SwitchCurrentEntryL(aEntryId);
i have an panic USER42.
I have declared:
...
CBaseMtm* iPOP3Mtm;
...
and:
...ConstructL()
{
....
// Create a session with the message server
iSession = CMsvSession::OpenSyncL(*iObserver);
// Create a client MTM registry
iClientMtmReg = CClientMtmRegistry::NewL(*iSession);
// Get a pointer to the local-service entry root
iEntry = iSession->GetEntryL(KMsvRootIndexEntryId);
// Create a client POP3 MTM
iPOP3Mtm = iClientMtmReg->NewMtmL(KUidMsgTypePOP3);
}
Question:
Why? I have used the same on code 'csmsmessagelink.cpp'
What differences on calling code?
can you please help me how do i download complete email text message using a pop mtm .
i see there are two flags in email account settings one is "download headers " and the other is "download email" i have done this using c++ but i still download only the headers .......
can you plesase help , where am i missing something .