mail icon indicating copy to clipboard operation
mail copied to clipboard

Show first line of message as preview

Open ChristophWurst opened this issue 5 years ago • 6 comments

Feature Request

As any other decent IMAP client would do, our should also show the start of the first line of each message in the message list.

Summary

See above


Caveat: this operation is expensive. We have to fetch the body part. HTML message need special care.

In a later stage we can optimize to omit stuff like greetings or quoted text for bottom replies. For a start, the first line is good enough.

Implementation idea

We should fetch this data on demand, similar to the avatars. The data should then be written to the message cache #2064 (or memcache? :thinking:) as it is immutable.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

ChristophWurst avatar Jan 30 '20 14:01 ChristophWurst

Other products

Gmail

Outlook

Apple mail

Android


Source: https://litmus.com/blog/the-ultimate-guide-to-preview-text-support and google image search

ChristophWurst avatar Feb 06 '20 13:02 ChristophWurst

so this would actually work well with the propsed solution for the iMIP issues I'm fighting with at the moment:

https://github.com/nextcloud/mail/issues/6802#issuecomment-1204351165

miaulalala avatar Aug 03 '22 18:08 miaulalala

Backend part is done via https://github.com/nextcloud/mail/pull/6962

ChristophWurst avatar Aug 08 '22 20:08 ChristophWurst

@nimishavijay @jancborchardt I believe we had mockups for this feature but I'm not able to find them. Could you post them here please for the frontend engineer?

ChristophWurst avatar Aug 09 '22 07:08 ChristophWurst

I believe we had mockups for this feature but I'm not able to find them.

Actually we didn't. I'd say there should be one line under the subject in the same font size as the subject and in normal text (not bold) regardless of whether the email is unread or read.

image

cc @jancborchardt on this

nimishavijay avatar Aug 09 '22 14:08 nimishavijay

Frontend part 1/2 done via https://github.com/nextcloud/mail/pull/6966

ChristophWurst avatar Aug 09 '22 17:08 ChristophWurst

@jancborchardt @nimishavijay where should the preview show on the right pane?

Bildschirmfoto vom 2022-08-17 11-17-07

I'm tempted to put it left of the date but the space is precious https://github.com/nextcloud/mail/issues/7010

ChristophWurst avatar Aug 17 '22 09:08 ChristophWurst

Preview should:

  • go in the subline below the sender
  • be in color-text-maxcontrast
  • only show for collapsed mails cause for expanded ones it would duplicate otherwise

Regarding soace, see my comment on the issue you linked.

jancborchardt avatar Aug 17 '22 09:08 jancborchardt

It would be nice if this was a configurable option. Most imap clients default to 1 line but have the option to disable or change the number of preview lines (usually between 0 and 3)

meichthys avatar Aug 17 '22 15:08 meichthys

Frontend part 2/2 done in https://github.com/nextcloud/mail/pull/7021

ChristophWurst avatar Aug 18 '22 07:08 ChristophWurst