I have a PHP IMAP based component which fetches emails from MS Exchange, its working fine on my UBUNTU dev machine, but the code faces this error on centOS based production server which has a lower version of both php and libc-client than my dev machine.
Fatal error: imap_headerinfo() [http://php.net/function.imap-headerinfo'>function.imap-headerinfo]: Address buffer overflow in /apps/app/releases/20130906105611/controllers/components/imap.php on line 359
The problem is that I cant upgrade Production Environment, so i dont want to recieve emails with large headers, most probably which has too may emailids in to, cc or bcc part of incoming emails. Is there a way to set up this kind of filter on MS Excahnge.