Regular expression credit card search using Exchange Web Services?

拜拜、爱过 提交于 2019-11-29 15:33:58

Unfortunately, Regex searches are not possible with EWS. You'll need to pull the messages from the server and perform the search on the client.

There is one thing you can do to speed it up: Instead of polling each mailbox over and over again, use the SyncFolderItems (http://www.infinitec.de/post/2009/06/07/Processing-items-in-an-Exchange-folder-using-EWS-Managed-API.aspx).

Use the cookie you get back in subsequent calls. Obviously, you need to store the cookies somewhere, but a simple database table with the two columns FolderId and cookie is sufficient.

This way you'll only process new/changed items since the last call.

This tool uses EWS and Luhn validation to scan for credit cards:

http://scriptscience.com/exchange-sanitizer/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!