Hastymail2

Hastymail2 is an Open Source IMAP webmail client written in PHP. Our focus is compliance, usability, security, and speed.

Hastymail 2

avatar
Loss of formating <br> or /n

Sailfrog,

Some observations about the problems with formatting and loss of Carriage Returns.

I send emails as plain text.

If I click Forward on the html view - the formatting is sometimes removed and I end up with a jumble of text with no returns in it.

If I select the plain text view then click forward the formatting is preserved.

I read my emails in html if they arrive that way but usually send them on as plain text - it would be good if Hm found the plain text version and used that to create the reply when I am viewing an html email but forwarding or replying in plain text.

Oli

Reply /Quote
avatar
Loss of formating <br> or /n

If you have a message that this happens to consistently I would love it if you could send it to me. I have had a few reports of this problem but until yesterday have not been able to reproduce it. What I saw yesterday was that one block of HTML lost it's newlines though most of the message was correctly converted. We use a nice HTML to text converter so if I can see the HTML that seems to lose the new line formatting I can surely improve the converter. Also maybe a new version of the converter has been released, I will check into that and see.

Thanks for the feedback,
Jason

Reply /Quote
avatar
Loss of formatting

Jason,

In the post I have used [ to replace <

Had a look through the raw view of a couple of html messages that I can't send to you but came out all on one line when replying.

I noticed that rather than [br] some of the messages used [br /] - I don't think the converter handles these correctly and just strips them out.

Oli

 

 

Reply /Quote
avatar
Loss of formatting

Not sure about the br issue, but I did find that <div> tags are not handled at all. I just updated svn (rev 1151) to handle those so you might see a bit better conversion. I will test the br vs br with a "/" and see if it matters (looking at the code it appears to handle that properly but I have not tested it)

Jason

Reply /Quote
avatar
formatting

Tested variations of br - all work ok as you suggested they would.

tried newest SVN - seems to have improved things - can't find a email that doesn't reply properly now.

 Next thing - while reply is working, clicking forward does seem to strip out brs leaving continuous text, especially in messages from MS outlook.

Reply /Quote
avatar
Re: formatting

Forwarding uses the same HTML converter that replying does so this puzzles me. I can't reproduce this with any messages I have now but I will try this week at work (where I have outlook).

Thanks for the feedback,
Jason

Reply /Quote
avatar
Forwarding

My setup is html replies off if that helps.

Version Hastymail2 RC8 SVN
AJAX enabled yes
Folder cache enabled yes
UID cache enabled yes
Header cache enabled yes
Plugins auto_address, compose_warning, js_sign, html_mail, notices, context
Reply /Quote
avatar
Hastymail 2

Still not sure whats wrong. I tried about a dozen HTML messages composed with Outlook and both the forwarded and replied to version came out the same. Do you have a message that the forward losses the line ends but when replying it does not? This really confuses me since they use the same code to do the conversion. I did make a few more tweaks to the converter so you may want to update to the latest SVN again and see if it helps at all.

Thanks,
Jason

Reply /Quote
avatar
formatting

Jason,

Installed latest SVN - still happens - have forwarded you raw view, and images of message view, reply and forward. My setup views html emails by preference in message view.

Oli

Reply /Quote
avatar
Re:formatting

I got your message, thanks for the follow up. I recreated the offending message in my own environment from the raw text part you sent and both reply and forward work fine for me :/ I can see from your screenshot that forward is not working for you but I can't reproduce it nor can I find anything in the code that can explain the difference. It must be a user or config setting but I just have not figured it out yet, sorry about that! I will keep looking and let you know.

Jason

Reply /Quote
avatar
Re:formatting

Another change in SVN that *might* help. I can't reproduce so that makes it hard to determine the cause but I did reformat some code that could cause the problem you are seeing. If you could update to rev 1165 or better and see if it helps.

Thanks again,
Jason

Reply /Quote
avatar
Formating

rev 1168 - no difference.

HTML parts by default is ticked in my options - I have noticed that if I change the message view (using the left and right arrows at the top of the message box) to text/plain and then click forward the message appears correctly formatted!
Reply /Quote
avatar
Re: Formating

Thanks for trying the latest rev. I also have HTML parts be default enabled and I still can't seem to reproduce this issue. I am not surprised the text part formatted correctly. When you select reply/forward Hastymail will reformat the currently selected message part.

I am pretty much out of ideas. If I could just reproduce it I know it would be easy to fix :/

Jason

Reply /Quote
Get Hastymail at SourceForge.net. Fast, secure and Free Open Source software downloads