title: Catch emails recived by the server with PHP
body: <p>I need to process information received by mail with my DB automatically.</p>
  
  <p>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.</p>
  
  <p>I'm running an Ubuntu server and php 5.5. </p>
  
  <p>what is the best way of achieving it? </p>
  
  <p><strong>** EDIT **</strong></p>
  
  <p>I know its not PHP alone, I have no problem modifying server variables / doing some modifications.</p>