title: Using imap functions in PHP without rebuilding and reinstalling
body: <p>I wanted the latest PHP version to work with on a fresh Macbook, but the php installation does not include imap functions by default. There is one specific function I need - namely the "imap_rfc822_parse_headers" function, but I don't feel like recompiling, building and installing PHP (not to mention the effort it takes to install c-client and imap.so beforehand) just for that. I fear that the convoluted procedures (of which each that I've found is somewhat different) might mess up my current installation which was by no means easy to set up.</p>
  
  <p>Is there any other, easier way of installing imap into PHP? On a related note, is there perhaps a class-based alternative to the function I need?</p>