Skip to content

deal with loooong incoming mails containing maybe loooong links #2213

@r10s

Description

@r10s

/me trying to sum up come recent disussions

due to some progress on our email-compat project, an ever-existing issue becomes more visible.

while normal chat messages are typically generated with another messenger and do not become unwieldy long, this may easily happen for emails sent from other mua - and this is esp. true for mailinglists, newletters.

for html-emails, the situation is even worse as they may contain very long links (for whatever reason); these links are typically shown in the html-part with a much shorter label - but in bubble-view we do not have this option currently.

meanwhile, we have an show full message view on android (and soon on the other os :) and can show these html-emails and long plain-texts without much flaws, including long links with labels etc.

the issue is: how to deal with these messages in the bubbles of the chatview?

and how we can achieve this without too much effort on all systems (there is already quite some backlog in the UIs), so only doing that in core.

one idea of @link2xt that i find very simple and promising is

  • just cut these mails after some N words/lines/characters

some refinements:

  • make sure, only to cut at word-border, so we do not cut inside a link

  • maybe also cut before the first loooong links - so that issue will not pop up (we could define link links with having eg. more than 200 characters or so)

of course, in all these cases, directly under the text, the button "Show full message" will appear - so we can cut at bit more generous as in the past where we did not have this option (beside some hacks :)

and also, as in the past, we should indicate the cutting with [...]. also, of course, before we do this cut, the already existing methods to remove quotes etc. are applied.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions