I am looking into how I can develop an ability to send information into the system via email.
Twitter has a feature with mobile phones, your mobile is registered with their system and when text comes in from your phone they would post a tweet..
I am looking to have a similar feature with emails, where by user A has email [email protected] and when we have an incoming email we will know how to deal with...
At the present moment I have following solution:
- Create an email box for each account, have it automatically created for each new account
- use fMailbox to catch new emails, using cronjob every 5 minutes or so.
My thinking is that if you have 1-3000 users it would be quite a lot of emails to check?
In perfect scenario I would want to:
- Look at all email incoming emails that have date older or equal to the previous check
- Filter out emails with emails that we have registered in the database
- Process emails
- Delete emails
Extra condition is to make sure that
- Email is not a spoof
- Email is not malicios