I need to process information received by mail with my DB automatically.
lets say the server received an email for 'X' , and 'X' is indexed in my DB, i want to perform an action on this row in the database.
I'm running an Ubuntu server and php 5.5.
what is the best way of achieving it?
** EDIT **
I know its not PHP alone, I have no problem modifying server variables / doing some modifications.