CFLMsgReader Procedure
Reads and parses a MSG file (Microsoft Outlook message format) into a JSON object. Extracts sender information, recipients, subject, body content, and attachments.
Signature
CFLMsgReader(Base64MsgFile: text) MailJson: JsonObject
Parameters
Base64MsgFile text
Base64 encoded string of the MSG file.
Returns
JsonObject
A JSON object containing the parsed email data with sender, receiver, recipients, subject, importance, body (text and HTML), and attachments.
Example
Response format: { "Sender": {"Name": "John Doe", "Email": "john@example.com", "SentOn": "2023-05-26T15:58:01+00:00"}, "Receiver": {"Name": "Jane Smith", "Email": "jane@example.com", "ReceivedOn": "2023-05-26T15:58:12.8624673+00:00"}, "Recipients": [{"Name": "Jane Smith", "Email": "jane@example.com", "Type": "To"}], "Subject": "Meeting Request", "Importance": "Normal", "Body": {"Text": "Plain text body", "HTML": "HTML body content"}, "Attachments": [{"filename": "document.pdf", "data": "base64encodeddata"}] }