Hi all,
I'm having an issue when trying to trigger new tickets via incoming email, piped through to class.mailparse.php. In the the recursive method getAttachments() I'm having an issue where the method immediately returns an empty array even though the email had attachments. The cause of this seems to be that the email headers in an email sent via Zend Mail (the mail component of the Zend Framework, latest version) adds a header "Content-disposition: inline" amongst the "main" headers, whereas the code in getAttachments() seems to only expect these headers within the attachments-headers. When sending an email from a normal email client this extra "Content-disposition" header is not added and the osTicket pipes/creates the ticket just fine, with attachments etc.
Other stuff also go wrong because of this, the ticket created in the end has the email subject as the ticket subject (as should be) but also the email subject as the ticket text, which is obviously not what you want.
Anyone else having this issue?
I'm using osTicket 1.6, php 5.2, Linux/CentOS.