I'd like to setup an automatic daily query to scan each user's inbox and then output, if present, the number of tasks to perform.
After that I'd like to export to OS such informations.
The aim is to daily notify by email users of the number of tasks they have to perform, as a remainder.
If your intention is to notify the user, that the task is pending. You could use an workflow handler EPM-late-Notification, to trigger an e-mail the the user, that the task is late. (Kind of a reminder).
For which you have to install the Task Manager Daemon to trigger this. Here is the link for the more info:
Hope this helps !