Dear Community,
I have successfully setup latest Version of Alfresco Commuity Edition and enabled Inbound eMail. I'm able to send emails to that folder and email body and attachements are shown. The only issue is that although the email is in HTML the mimetype of the Body is automatically set to Plain/Text.
Is there a way to change this to HTML/Text? I'll tried to set a rule accordingly. The rule works and creates a copy of the Body with "html" Extension and HTML Mimetype, but the Content of the Body is still shown as Plain. If I Change the mimetype manually to HTML it works fine. There must be a way to automate this?
Thanks in Advance for any helpful answer.
Solved! Go to Solution.
Hi Thomas,
I think you are already familiar with creating a rule - just use a "execute script" as action for your rule.
You can create/upload the script (Javascriptfile) in the "Data Dictionary/Scripts" Folder (before creating the rule).
In your script there should be a line like
document.properties.content.mimetype="text/html"
document is the global scope object that has triggered your rule (the html Attachment in your case)
Set up a JavaScript rule - you should be able to access and change the mimetype via document.properties.content.mimetype
Thnaks Martin for your answer. I'm no professional java developer. Can you perhaps explain a little more detailed how to do this or link on the applicable documentation of the functionality? I'm willing to self teach me the knowledge but I need to get a suitable starting point to learn and to try.
Hi Thomas,
I think you are already familiar with creating a rule - just use a "execute script" as action for your rule.
You can create/upload the script (Javascriptfile) in the "Data Dictionary/Scripts" Folder (before creating the rule).
In your script there should be a line like
document.properties.content.mimetype="text/html"
document is the global scope object that has triggered your rule (the html Attachment in your case)
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.