AquaMail Forum

English - Android => Bug reports => Topic started by: naiad on March 19, 2013, 03:47:54 pm

Title: problem with line break
Post by: naiad on March 19, 2013, 03:47:54 pm
hi,

i really like your app a lot, but i have the following problem:

if i set up a new email, save it as a draft first, and open it again to follow up & finish it, everything looks fine & the way i wanted it to. But - after sending, when i open the mail into the sent folder, it looks very different:
all the line breaks (after paragraphs/text blocks) followed by a free line (set up by clicking the enter button two times) have suddenly disappeared, and just simple line breaks are left, so the text looks like a big block, very ugly & unclear.

do you have any idea how to solve this?
thanks & bye,
naiad
Title: Re: problem with line break
Post by: Kostya Vasilyev on March 23, 2013, 01:36:19 am
Hi,

Do those blank lines have the quoting prefix "> " before them?

What is your device and Android version?
Title: Re: problem with line break
Post by: naiad on March 26, 2013, 01:36:48 pm
No, there is no quoting prefix - what i described refers to 'pure' textmode without quotation, when setting up a complete new email. And two other tops to circumscribe the problem:
it doesn't always happen to ALL line breaks, sometimes only to some of them - and if i send a test mail to myself, there are 2 views of the same mail: in the sent folder most of the line breaks are gone, but in the inbox most of them exist - so i can't be sure which version arrives when i send a mail to a real recipient.

my device is a sony ericsson xperia mini pro, android 2.3

 
Title: Re: problem with line break
Post by: Kostya Vasilyev on March 30, 2013, 02:10:16 am
Trying to think of a good way to debug it... Especially since the code that converts from plain text to HTML (for display) is the same in both places.

Do you have trailing spaces in your message, on any lines, by any chance? Could this be the trigger?

Can you send me a message like this (to kmansoft /gmail), CC'ing yourself to verify, so I can try and reproduce the issue here?
Title: Re: problem with line break
Post by: naiad on April 09, 2013, 11:56:55 pm
hi & sorry for the long break, but i was quite overworked..  :-\

about the topic:

1. you asked about trailing spaces.. did you mean trailing spaces by mistake, like before or behind the line break? so, no, i didnt find any..

2. the problem with the example mail is the following: step 1 - i try to forward such a mail in 'quote original' mode .. the line break mistakes are still visible. step 2 - i choose 'inline answer' (for removing some personal details out of the text) .. and the mistakes have disappeared: all line breaks are correct by a sudden.  :o
this is reproducable.

quite strange.. does it make sense to send you that mail, anyway?
Title: Re: problem with line break
Post by: Kostya Vasilyev on April 10, 2013, 02:00:44 am
I just tried reproducing this, and could not...

So yes, if you could send me the original message you're replying to, that would be great (my email: kmansoft / gmail).

I need the actual message source (do not forward in a mail app), can you get it somehow, most mail apps have things like "show message source"?
Title: Re: problem with line break
Post by: littlepriest on January 18, 2014, 06:03:23 am
Hi, I have the same problem and it has existed on and of since Feb 2013. I say "on and of" because until this thread I didn't associate the problem with first saving the email in Drafts, but also haven't done tests. But it just happened yesterday exactly as "naiad" explains it above, with everything looking fine in the drafts before sending and then I see that the sent mail in Yahoo or AquaMail has no line breaks. Very annoying for long, carefully formatted emails that then end up looking like a mass of "ipsum lorum".

I've seen this on both ICS 4.0.4 (Motorola Xyboard tab) and on my current JB 4.2.2 (HTC First).
Title: Re: problem with line break
Post by: Kostya Vasilyev on January 20, 2014, 02:53:25 am
Well, I'll try again to reproduce this. Was it an HTML or plain text message, do you know?
Title: Re: problem with line break
Post by: littlepriest on January 20, 2014, 03:36:15 am
I'm assuming HTML, but now that you've asked the question, I don't actually know a way of confirming it for sure. I originated the email stream in Yahoo (HTML) but the problem happened when I replied to the responder's message, which came from a company domain, written in Times New Roman. But there were no embedded images or other tell-tale signs that the mail wasn't a plain-text response.

I'll be happy to send you any other info that you might want, and I appreciate your quick response and willingness to look at this. Thanks.
Title: Re: problem with line break
Post by: Kostya Vasilyev on January 20, 2014, 03:57:44 pm
What would help is if you could save the exact sources of both messages (the one you were replying to and the actual response) and send them to me as attachments, or if you could forward them as attachments. My email is kmansoft / gmail.

Both used to be possible in Yahoo web mail, but have been removed in last fall's update ("to improve user experience" no doubt).

It should be possible to "forward as attachment" in Outlook:

http://www.readnotify.com/readnotify/attachment.asp
Title: Re: problem with line break
Post by: kt69 on May 05, 2014, 05:17:27 pm
I have this issue too from to time. Everything looks fine in the Sent folder, but the recipient of my e-mail will receive it as one big block of text, withouth any line breaks at all.
The issue is mostly random, I don't know what causes it.

I really like this app, and I don't have any problems with it other than this.

Does anyone have a solution?
Title: Re: problem with line break
Post by: Kostya Vasilyev on May 07, 2014, 01:52:21 am
Different people reported this from time to time, but I never got anything I could investigate.

This would mean the exact actual message source from your web mail's Sent folder (if it's there).

It would also help me to know what email service / mail app your recipient uses -- Yahoo, by any chance? If my memory serves me, the prior cases had to do with Yahoo web mail.
Title: Re: problem with line break
Post by: littlepriest on May 08, 2014, 02:44:21 pm
Hi, if I recall I spent a fair amount of time putting together some emails from Outlook that I sent to you by email for you to look at (after my post above).

The problem keeps happening and with almost 900 views on this thread I guess it's something that others are also experiencing.

I use Yahoo.

The simplest example of when this problem occurs is when I use AquaMail to do a "reply-all" on a mail I already sent originally from Yahoo. In other words, when I open up AquaMail, go into the Sent folder, open a mail I already sent using Yahoo, press "reply-all", write my new text (with line breaks), and then press "send".

The new mail sent from AquaMail loses the line breaks that were entered in AquaMail but the earlier text that had been sent from Yahoo retains its line breaks. It's funny you've never seen this problem. It simply happens all the time and would be great if you could somehow fix it.

Thanks.
Title: Re: problem with line break
Post by: Kostya Vasilyev on May 11, 2014, 01:37:08 am
I never got those messages from you (Gmail's spam filter?), but your clarifications are very helpful.

I've never seen it myself because 1) I very rarely send anything from Aqua and 2) don't regularly use Yahoo (I have a test account, but just that).

Will try to reproduce the issue based on your scenario.

Funny how it seems to be related to Yahoo mail and only Yahoo mail (based on what I heard so far).
Title: Re: problem with line break
Post by: littlepriest on May 11, 2014, 06:05:21 pm
Thanks Kostya. It would be great to have this annoying problem go away.

As for the fact that it's likely a Yahoo-related problem, I'm sure Yahoo Mail is still quite popular. A lot of us have Gmail accounts because it's easier to deal with our Android lives, but I personally never use Gmail for emails.

Anyway, let me know if you would like me to re-send those .msg mails that I sent you earlier from Outlook desktop.

Thanks again.
Title: Re: problem with line break
Post by: Kostya Vasilyev on May 15, 2014, 02:19:55 am
If you still have those messages saved somewhere, yes, it would help a lot.

Let's try some other account so it doesn't get lost: kmansoft / fastmail.fm

Thanks in advance.
Title: Re: problem with line break
Post by: littlepriest on May 17, 2014, 01:08:00 am
I've done some more testing and sent you a separate mail intending to include some attachments from Outlook, but then I realized I lost the original "Outlook.pst" file that had the attachments I sent you back in January when I changed computers. And it's taken so long to do this newest testing that I wanted you to first see what I found out first and maybe the Outlook stuff you can create more usefully yourself or it might not be necessary. So I'm posting here what I sent in my mail:

I narrowed down the missing-line-breaks problem to where it's now easily repeatable (for me, anyway).

*** First of all, it seems to happen only on emails that originate from Yahoo Mail. If I create the mail in Aqua Mail, there's no problem -- then I can reply to it from either Yahoo Mail or Aqua Mail and the line breaks are always retained.

Also, there's no problem if I reply to a mail I haven't originated in Yahoo Mail that came from outside.

*** Here's how I see the problem:

I tested by first creating and sending a mail to myself from Yahoo Mail (3 lines of text separated by line breaks). When I replied to this mail using Aqua Mail (another 3 lines of text separated by line breaks), that 2nd mail is received in Yahoo Mail without line breaks (only affects the newest text -- old text is unchanged).

However: that 2nd mail shows up in Aqua Mail with the line breaks intact. Did you get that? I see the same mail in AM with the line breaks there, but without breaks in YM.

If I only ever reply to the 1st (original) mail using Aqua Mail, the problem never shows up if I only look at subsequent mails in Aqua Mail. But, open up Yahoo Mail, and all the newest mails sent from Aqua Mail will be shown without line breaks.

Again, a mail originally created by Aqua Mail never shows up without line breaks in Yahoo, even after doing several replies to yourself back and forth in either YM or AM.  The mail seems to have to be created in YM.

Also, any mail replied to using YM will also be ok -- line breaks always intact, though this never fixes the old mails further down the page that came from AM.

*** Bottom line: originating a mail in YM will cause subsequent replies from AM to lose line breaks when the mail is viewed in YM and will stay lost if using YM to reply further, though the new text created in YM will be ok.
Title: Re: problem with line break
Post by: Kostya Vasilyev on May 19, 2014, 01:49:10 am
With excellent help from Mr. @littlepriest, we were able to resolve the issue. I'll be posting a new build in an hour or so.

-----------

TL;DR - this is deliberate "feature" of Yahoo web mail, but I have a workaround.
 
I used Chrome to inspect actual CSS properties inside Yahoo web mail, and discovered that their stylesheet has rules to deliberately "collapse" paragraphs, making them show right after each other, with no vertical empty space in between.

That's no accident -- there are multiple rules for this, so they want to be really sure.
 
Once I knew what to look for, it was easy to find these (and there are more):
 
http://www.dirigodev.com/blog/email-marketing-esp/yahoo-webmail-ignores-paragraph-spacing/
 
http://www.email-standards.org/blog/entry/yahoo-drops-paragraph-spacing/
 
I added a workaround to Aqua, to explicitly set after-paragraph margins.

Oh, and what "special" things does Yahoo web mail use for its own messages? <DIV> blocks instead of the standard <P>'s.

That's legal HTML, but the standard way to represent a paragraph is the <P> tag.