Need to save a copy of the incoming email as an attachment
Posted: Fri Sep 15, 2023 8:10 pm
Script URL: Internal Only
Version of script: 3.4.3
Hosting company: Dedicated server
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: eml/imap/email attachment/etc.
Write your message below:
We are using the OAUTH mechanism against O365. Everything works as spec'd
However, We have a requirement to retain the original email not just create a ticket from it. I don't believe an export option would work as it is no longer the original email.
My thought is that the GRAPHAPI that parses the new message could be used to not just parse the subject, body, etc. but to grab the whole message as an EML and attach it as a separate attachment once the ticket is created.
I'm wondering if anyone has done this (maybe I'm missing something). Failing that, maybe point me in the right direction as to where I can make the appropriate change. After a quick review (and I do mean quick), I'm thinking that I need to alter the 'attachments.inc.php' file.
Any advise would be appreciated.
Version of script: 3.4.3
Hosting company: Dedicated server
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: eml/imap/email attachment/etc.
Write your message below:
We are using the OAUTH mechanism against O365. Everything works as spec'd
However, We have a requirement to retain the original email not just create a ticket from it. I don't believe an export option would work as it is no longer the original email.
My thought is that the GRAPHAPI that parses the new message could be used to not just parse the subject, body, etc. but to grab the whole message as an EML and attach it as a separate attachment once the ticket is created.
I'm wondering if anyone has done this (maybe I'm missing something). Failing that, maybe point me in the right direction as to where I can make the appropriate change. After a quick review (and I do mean quick), I'm thinking that I need to alter the 'attachments.inc.php' file.
Any advise would be appreciated.