I have a problem where somebody using the form I've created with outlook 2007 and the formatting is correct, if you use outlook 2010 not only is the formatting off, but it's breaks up and leaves area's out.
Here is an example:
This is what was written:
This is an early submission so that Criss and his team can be aware of it. This change is for the week of Oct 18th 2011.
Upgrading Proofpoint from version 5.5 to version 6.3. Each of our 15 Proofpoint servers will be taken out of the F5's pool, 1 by 1, so that they can be upgraded to the newest code and then tested and put back into rotation behind the load balancers.
We have scheduled Micah from Proofpoint technical support to assist us on site with this change and estimate it taking a few hours from start to finish. We also scheduled a pre-install conference with Proofpoint for the 12th next week just to go over the game plan and ensure it all goes smoothly, and to make sure there are no obstacles in our upgrade path.
We have already created virtual machine environments and installed the newest code for testing permissions, compatibility, and other features of the newest code, and we look forward to a smooth transition.
This is what was sent:
This is an early submission so that Criss and his team can be aware of it. This change is for the week of Oct 18th 2011. oofpoint technical support to assist us on site with this change and estimate it taking a few hours from start to finish. We also scheduled a pre-install conference with Proofpoint for the 12th next week just to go over the game plan and ensure it all goes smoothly, and to make sure there are no obstacles in our upgrade path. ures of the newest code, and we look forward to a smooth transition.
I've noticed this problem in Thunderbird and Evolution email clients.
I am using Mime Mail to sent out my messages.
Comment | File | Size | Author |
---|---|---|---|
#10 | webform_nl2br-d6.patch | 750 bytes | quicksketch |
#10 | webform_nl2br-d7.patch | 739 bytes | quicksketch |
Comments
Comment #1
quicksketchWow, strange. I've never seen such a thing. Could you post the raw output of the e-mail (including all the headers)? I'm wondering if actual parts are missing from the code or if it's a formatting issue (such as an unclosed DIV or the length of lines) that's causing parts of the e-mail to be missing.
Comment #2
calbert CreditAttribution: calbert commentedhere is the copied raw:
EDIT: Wrapped in
<code>
tags. Removed CSS as it doesn't seem to be a problem.Comment #3
calbert CreditAttribution: calbert commentedI've noticed the same problem in Outlook 2010 as well
Comment #4
quicksketchThanks, I've removed the CSS from your post and wrapped it in
<code>
tags for easier review. You'll see above that the entire contents are displayed twice, once as HTML and once as plain-text. Is the plain text version also missing text, or is it only the HTML version that is getting truncated?Plain-text version:
HTML version:
Clearly
oofpoint
is supposed to beUpgrading Proofpoint
in the HTML version, but is anything missing from the plain text one? Also if you could send the same e-mail again to Thunderbird or an e-mail client that appears to work, and send the raw text again for an e-mail that works, that would also be helpful.Comment #5
calbert CreditAttribution: calbert commentedHere is mine from outlook 2007
Comment #6
quicksketchHm, I'm largely at a loss on this one. Are both Outlook 2010 and 2007 getting mail from the same server? I'm wondering if one of the mail servers is garbling the output, such as if you're using an Exchange server for one but POP or IMAP for the other.
Comment #7
calbert CreditAttribution: calbert commentedThey are both through pop account I did find out today that they are forwarding all email from one pop account to another. I have tested in outlook 2007, Outlook 2010 and Thunderbird that if the email have not been forwarded, they don't come out truncated. Clearly there is something happening during the forwarding.. what is the question?
Comment #8
aharrison.mc CreditAttribution: aharrison.mc commentedHaven't had a chance to confirm it yet, but I'm pretty sure the problem is right here:
http://drupalcode.org/project/webform.git/blob/HEAD:/components/textarea.inc#l148
str_replace("\n", '<br />', ...
Fairly typical CRLF handling problem. Web browsers send line termination characters as
\r\n
so if anyone presses the enter key in a textarea of their webform submission, the str_replace is going to strip the\n
while leaving the\r
. This is going to behave in curious ways depending on operating system and other factors.Changing the regex to something like
"/\r?\n/"
would be more CRLF friendly.Comment #9
vernond CreditAttribution: vernond commentedThere is an unclosed div (see below). The Outlooks are great at breaking block level elements to accommodate their display criteria and "dodgy" html shows up real well when Outlook forwards it.
Comment #10
quicksketch@aharrison.mc's suggestion is worth a shot I suppose. I've committed this patch using PHP's handy (if kludgy) nl2br() function, which should handle every form of new line. I'm marking this issue fixed, please reopen if the issue continues in the 3.15 version we'll be releasing shortly.
Comment #12
klonos...spam :/