At work we've got a document management system in place here. The specifics don't matter, but suffice it to say, some of the HTML Outlook messages were converted incorrectly when being imported into the system. It turned
Into
For those too disinterested to check, it removed all {, }, and carriage returns.
The resulting HTML showed up fine in Outlook XP/2003, but when viewed in Outlook 2007 all these messages are missing the first paragraph of the message. Adding a single carriage return before the <body> tag makes everything all pretty again.
My question:
Does anybody know of any way of doing a search/replace in MSG files to change
</head><body>
into
</head>
<body>
?
I'd try write a little utility to do it myself, but Outlook doesn't store the HTML in plaintext. Except for when it does. Damn inconsistent file formats....
We're talking about 1,000,000ish msg files to search through, though a smaller number of them will be HTML, and of those, not 100% are affected.
Code:
<STYLE>@font-face {
font-family: Tahoma;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
blah blah blah
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-CA vLink=purple link=blue>
Code:
<STYLE>@font-face font-family: Tahoma;@page Section1 size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; P.MsoNormal FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"LI.MsoNormal FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"DIV.MsoNormal FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"A:link COLOR: blue; TEXT-DECORATION: underlineSPAN.MsoHyperlink COLOR: blue; TEXT-DECORATION: underlineA:visited COLOR: purple; TEXT-DECORATION: underlineSPAN.MsoHyperlinkFollowed COLOR: purple; TEXT-DECORATION: underlineP.MsoAutoSig FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"LI.MsoAutoSig FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"DIV.MsoAutoSig FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"SPAN.EmailStyle17 COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-composeDIV.Section1 page: Section1</STYLE></HEAD><BODY lang=EN-CA vLink=purple link=blue>
The resulting HTML showed up fine in Outlook XP/2003, but when viewed in Outlook 2007 all these messages are missing the first paragraph of the message. Adding a single carriage return before the <body> tag makes everything all pretty again.
My question:
Does anybody know of any way of doing a search/replace in MSG files to change
</head><body>
into
</head>
<body>
?
I'd try write a little utility to do it myself, but Outlook doesn't store the HTML in plaintext. Except for when it does. Damn inconsistent file formats....
We're talking about 1,000,000ish msg files to search through, though a smaller number of them will be HTML, and of those, not 100% are affected.