I installed a ticket support software (osTicket) to our web server. Everything went smoothly except the IMAP extension on our server was not enabled, so osTicket can't accept e-mail to turn into tickets. This functionality is one of the main reasons we went with osTicket. Unfortunately, the hosting company won't enable the IMAP extension on our web server so I have been forced to find another means of receiving e-mail and getting them into the system.
After a bit of research and trying to trick the system into accepting remote piping using mailhooks, I have found Zend\Mail and am confident it will do the trick; however, the documentation for Zend\Mail, specifically for reading and manipulating messages, is pretty thin and there are not many code examples for me to work with. What I really need is a one-to-one mapping of imap functions to Zend\Mail functions. Specifically, I need to find out how to do in Zend\Mail each of these imap functions:
imap_timeout
imap_ping
imap_open
imap_close
imap_headers
imap_list
imap_utf7_decode
imap_createmailbox
imap_8bit
imap_binary
imap_base64
imap_qprint
imap_utf7_encode
imap_mime_header_decode
imap_utf8
imap_last_error
imap_headerinfo
imap_fetchstructure
imap_fetchbody
imap_fetchheader
imap_num_msg
imap_setflag_full
imap_uid
imap_mail_move
imap_delete
imap_expunge
I think I figured some of these out, but would appreciate another opinion. Is there a reference somewhere that shows the equivalents of these IMAP functions in Zend\Mail?