<div dir="ltr"><div><div><div>Hi Gilmore!<br></div>Could you specify where exactly you put style declaration for template.<br></div>I tried to add it just after "Content-Type: text/html" string, but it does not work.<br></div>Thanks.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 29, 2015 at 4:14 AM, Christopher Gilmore <span dir="ltr"><<a href="mailto:c-gilmore@northwestern.edu" target="_blank">c-gilmore@northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Christopher Gilmore wrote on 4/27/2015 10:42 AM:<br>
<br>
> Has anyone been able to sanitize Outlook HTML to eliminate the extra whitespace? Either<br>
> through RT itself or by manipulating the message via procmail prior to handing it to<br>
> rt-mailgate?<br>
<br>
</span>Ok, I managed to do this the mostly-right way, but I'm curious to see if anyone has any tips for finishing the job. My lingering concern is that it's a bit of a kludge - I've made a static style definition on the server for a setting that can be changed in Outlook and could potentially vary between multiple messages associated with the same ticket. Has anyone figured out a way to dynamically parse the style information from the email?<br>
<br>
The good news is that my kludge will address the vast majority of my users, as it works with the default Outlook configuration. For reference, in case anyone else needs to sort this out:<br>
<br>
I installed the Permissive HTML Mail extension, which (among other things) allows for style invocations to be passed from the message body to the ticket history.<br>
<br>
I added a custom css file at /opt/rt4/local/static/css/msfix.css in order to set the MsoNormal style and enabled it in RT_SiteConfig.pm with @CSSFiles. I also modified all the HTML templates to include the style declaration. In both cases, I pulled the style information directly from the body of a sample message.<br>
<br>
CSS file:<br>
<br>
/* /opt/rt4/local/static/css/msfix.css */<br>
p.MsoNormal, li.MsoNormal, div.MsoNormal<br>
{<br>
margin:0in;<br>
margin-bottom:.0001pt;<br>
}<br>
/* end of /opt/rt4/local/static/css/msfix.css */<br>
<br>
Template addition (before any HTML in the template, and quoted so as to not break Text::Template):<br>
<br>
<style><br>
p.MsoNormal, li.MsoNormal, div.MsoNormal<br>
{q{{<br>
margin:0in;<br>
margin-bottom:.0001pt;<br>
}}}<br>
</style><br>
</blockquote></div><br></div>