Hi,
I'm trying to intercept e-mail SMS before they reach the inbox. The only way I've found is to use a socket. Here's what I'm doing:
By binding my socket to the ESmsAddrEmail family, I should only receive e-mail SMS, but I've observed I receive all types of messages (normal SMS, WAP Push messages, MMS headers etc.)Code:iReadSocket.Open(iSocketServ, KSMSAddrFamily, KSockDatagram, KSMSDatagramProtocol); TSmsAddr smsAddr; smsAddr.SetSmsAddrFamily(ESmsAddrEmail); User::LeaveIfError(iReadSocket.Bind(smsAddr)); iBuf() = KSockSelectRead; iReadSocket.Ioctl(KIOctlSelect, iStatus, &iBuf, KSOLSocket); SetActive();
Hints, anyone? Has anybody ever tested ESmsAddrEmail sockets? Does it really work?
Note: I have the S60 FP2 v1.1 SDK with the SMS Utilities plugin from the FP2 API plugin pack v1.2
Thank you.



