Author Topic: Zoom levels for wider html emails  (Read 8811 times)

tessmctessy

  • Newbie
  • *
  • Posts: 9
Zoom levels for wider html emails
« on: December 22, 2015, 02:33:55 am »
If an HTML is pretty wide, you have to zoom out (either by double tapping, or using the zoom out gesture) to view the whole mail.  Is there a way for emails such as these to default zoomed out?  Turning on the "auto fit" alters the page to fit the zoom level, often really messing with flow of the page, so an auto zoom would change the zoom level to match the mail rather than change the page to match the screen. 
These screens are an example of how a mail will open, and how it looks zoomed out.


These screens are an example of how the flow of the page is changed when zoomed out vs "auto fit".


Additionally, are there any plans for Aqua Mail to support HTML Media Queries?  This would solve the problem for some emails since it'd fit the email to the screen automatically.


(I know this was asked in http://www.aqua-mail.com/forum/index.php?topic=3857.msg19862#msg19862 [nofollow]   but it was an old topic and when trying to make a reply it said I should make a new topic.)
« Last Edit: December 22, 2015, 10:37:45 pm by tessmctessy »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Zoom levels for wider html emails
« Reply #1 on: December 23, 2015, 01:33:25 am »
AquaMail supports CSS media queries.

Not all messages use them, even though that's the only *real* solution to zooming and layout.

HTML auto-fit code can affect layout, it really tries to push square peg into a round hole.

Most of the time it works fine, but some square pegs are too large and / or too sturdy...
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

tessmctessy

  • Newbie
  • *
  • Posts: 9
Re: Zoom levels for wider html emails
« Reply #2 on: December 23, 2015, 03:25:20 am »
AquaMail supports CSS media queries.

Not all messages use them, even though that's the only *real* solution to zooming and layout.

HTML auto-fit code can affect layout, it really tries to push square peg into a round hole.

Most of the time it works fine, but some square pegs are too large and / or too sturdy...

Hmm, if it already supports media queries, then I must have been wrong about what it was.

In a few other clients, the mail I pasted above has an alternate form that's not simply a fit to screen zooming.  See here:



See how the menu drops the "baby", "kitchen", "clearance", and "furniture" links in the top of the mobile specific version (even though all but clearance were before one of the remaining ones).   It's a whole new menu.   All the other images are aligned with that first image as well in a column.  I figured that was a result of @media tags in the source that made a different page structure.  But I guess it's something else.

Edit: My main question was in situations with auto-fit off.  That the client would automatically detect mails that needed to be zoomed out, and just zoom out as far as it can without needing to be double tapped.  I admit it's pure lazyness.

But oh wow, also, after all this time I had no idea there was a way to disable the black message background (or enable the white background) in dark mode for a specific email.  I just found it in the view menu.  That saved me so much time and is really convenient! Thanks. (Any plans for a disable auto-fit option in there too?). 
« Last Edit: December 24, 2015, 12:12:07 pm by tessmctessy »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Zoom levels for wider html emails
« Reply #3 on: December 25, 2015, 11:21:48 pm »
It's possible that there are bugs in my CSS handling code (I have to parse and re-write the CSS).

Please send the source code of this message to kmansoft / gmail.

Easy to get in web mail, or if you use Outlook, it has a way to "forward as an .eml attachment".

Forwarding "the usual way" would be much less useful (the message's code would be massaged in the process).

Re: In a few other clients

Is that Kaiten Mail? InoMail?

Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

tessmctessy

  • Newbie
  • *
  • Posts: 9
Re: Zoom levels for wider html emails
« Reply #4 on: December 26, 2015, 06:09:30 am »
OK, I sent the email with the eml attachment.  I used Thunderbird, but I think that should be the same.

As for which email clients.  Solmail was the one I took the picture of above.  But it appears the same in Typemail, Kaiten mail, and a couple others I can't remember that I no longer have on my phone.  I couldn't find an Inomail, though.  I tried it in K-9 mail, but it didn't look right at all.


Off topic, but I noticed this as I was checking the clients for the pattern.  Previews have two distinct patterns.  Like the email above (and all mails from Target) will have "======================" begin the preview in aquamail and kaiten mail, while others (like solmail and typemail) will have the first text in the mail without the ==============.  If you view the message as plain text, the "=================" is the beginning of the email.  If you view the mail as HTML, the text solmail and typemail displayed is at the beginning.  I'm assuming that's a preference of the creators that determines if the previews default to the plain text or HTML.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Zoom levels for wider html emails
« Reply #5 on: December 26, 2015, 07:59:52 pm »
AquaMail uses a message's plain text part for its message list preview.

For messages with a text/html part, sending a text/plain part that's consistent with the text/html is the sending party's responsibility.

Email apps typically do. Automated (promo / ads / notifications) messages are wrong and not infrequently so (text/plain containing HTML tags, too much garbage text, anything really).
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

tessmctessy

  • Newbie
  • *
  • Posts: 9
Re: Zoom levels for wider html emails
« Reply #6 on: December 27, 2015, 09:03:17 pm »
Just got the latest version, worked perfectly.  Awesome!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Zoom levels for wider html emails
« Reply #7 on: December 28, 2015, 12:49:09 am »
Thanks, it was a good thing to fix too.

The exact CSS/HTML code which my parser wasn't handling -- is a workaround they've put into the message for Yahoo (their Android app, I presume). How ironic.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

tessmctessy

  • Newbie
  • *
  • Posts: 9
Re: Zoom levels for wider html emails
« Reply #8 on: January 01, 2016, 07:50:06 am »
AquaMail uses a message's plain text part for its message list preview.

For messages with a text/html part, sending a text/plain part that's consistent with the text/html is the sending party's responsibility.

Email apps typically do. Automated (promo / ads / notifications) messages are wrong and not infrequently so (text/plain containing HTML tags, too much garbage text, anything really).
I know it's common with automated stuff to put the focus on the html, and not really paying much attention to the plain text.  That's kinda the issue.  I know I'm fixated on the promo stuff, but that's because I have a separate email address for ads, orders, coupons and stuff to avoid getting spam on my personal account.  And it handles previews fine on my personal account, but in my promo account view, I'm blasted with previews that are **************, or ===============, or web addresses, or no preview at all.  And since the account is only for them, they're all together, making it more obvious.
The ones that use the html (I'm guessing that's the difference) display them fine:


Right now it's just easier to keep the previews off. 





Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Zoom levels for wider html emails
« Reply #9 on: January 02, 2016, 04:04:08 pm »
It is what's *there* in those messages, put there by the sending parties.

I could parse HTML for previews, but it can be a performance issue somewhat.

( As an aside -- don't know for whom the text/plain parts in those messages are intended.. I mean other than email apps and their preview generation... Do many people these days use email apps not capable of displaying HTML or intentionally turn it off? )
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Zoom levels for wider html emails
« Reply #10 on: January 02, 2016, 07:05:37 pm »
...
( As an aside -- don't know for whom the text/plain parts in those messages are intended.. I mean other than email apps and their preview generation... Do many people these days use email apps not capable of displaying HTML or intentionally turn it off? )

For compliance. SpamAssassin and other similar spam filters have "HTML ONLY" as one of the tests.
And I suspect that some spammers might be generating a different text/plain part to "improve" bayesian scoring of their spam messages.

As for people reading that part, - I do that occasionally, but increasingly more seldom... when using "mail (1)" program (not app!) https://www.freebsd.org/cgi/man.cgi?query=mail&sektion=1
:-)