Here is a method of showing all the pretty formatting of Outlook , WITHOUT breaking the formatting of newlines on plaintext posts.
This requires an edit to modules/tickets/functions_ticketmain.php
Please do not attempt this if you are not familiar with PHP. YOU CAN BREAK YOUR ENTIRE HELPDESK IF YOU MESS THIS UP!
Here is how to make the mod:
Locate the function in this file called "getTicketPosts"
Look for the section in this function with the following code (mine was on line 537, yours will probably be different)
PHP Code:
if ($nobr == true)
{
$_posts[$dbCore->Record["ticketpostid"]]["contents"] = $dbCore->Record["contents"];
} else {
$_posts[$dbCore->Record["ticketpostid"]]["contents"] = $this->returnProcessedContent($dbCore->Record["contents"]);
}
Add the following code above it, and modify the if statement as follows. Yours should look the same as this:
PHP Code:
$ContentsCopy = $dbCore->Record["contents"]; //make a copy of the contents
$OriginalLength = strlen($ContentsCopy); //get original length of the string
$NewLength = strlen(strip_tags($ContentsCopy)); //get length after HTML tags are stripped
if ($OriginalLength != $NewLength || $nobr == true)
{
$_posts[$dbCore->Record["ticketpostid"]]["contents"] = $dbCore->Record["contents"];
} else {
$_posts[$dbCore->Record["ticketpostid"]]["contents"] = $this->returnProcessedContent($dbCore->Record["contents"]);
}
The logic here is to check for HTML tags before inserting a <BR> on every line. If there are any HTML or PHP tags present, the PHP function strip_tags will remove them, resulting in a different string length. If the length is different, HTML is present, so you do not want to insert the <BR> tags. Just display the HTML-formatted text as-is.
That's all it takes. You should be able to read ticket posts from Outlook in all their original HTML glory. This won't affent plain-text posts. They will still have the <BR> tags inserted so they display property. If this does not work for you, make sure your Admin control panel settings are set to parse and display HTML e-mails.
Enjoy!