title: Seeking (PHP) code to fetch e-mail, parse it and act upon it
body: <p>Before I probably reinvent the wheel, can anyone tell me if there exists a FOSS code library to check email on a regular basis (or driven by a cron job), to parse the title and body and to perform certain functions (mainly sending other emails).</p>
  
  <p>I was thinking PHP as it is server side and good at string handling, but I would be happy enough with C or C++. </p>
  
  <p>Hmmm, why am I even thinking server side? I suppose that it could just as well run on my PC (add Delphi, C++ Builder and maybe C# or even VB) as possibilities (sorry &amp; no offence intended; I know that it is well suited for string processing, but I don't know PERL and don't rally have time to learn).</p>
  
  <hr>
  
  <p>Edit: I'm think of some common code which allows to define "triggers" and register callback functions. So, a trigger might say that sender = XXX, title contains, To address is, etc (or combinations thereof) and I can register a callback function which I code which will do the appropriate processing when the condition(s) is met.</p>
  
  <hr>
  
  <p>Edit: found on SourceForge "ETODB is a free PHP class which allows to parse and extract data from emails to integrate with other php applications. You can automatically parse email messages and convert email to database records, save attachments to specific folders, browse log."   <a href="http://sourceforge.net/projects/etodb/" rel="nofollow">http://sourceforge.net/projects/etodb/</a></p>