mail
mail copied to clipboard
Show first line of message as preview
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.
Other products
Gmail
Outlook

Apple mail

Android

Source: https://litmus.com/blog/the-ultimate-guide-to-preview-text-support and google image search
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
Backend part is done via https://github.com/nextcloud/mail/pull/6962
@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?
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.

cc @jancborchardt on this
Frontend part 1/2 done via https://github.com/nextcloud/mail/pull/6966
@jancborchardt @nimishavijay where should the preview show on the right pane?

I'm tempted to put it left of the date but the space is precious https://github.com/nextcloud/mail/issues/7010
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.
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)
Frontend part 2/2 done in https://github.com/nextcloud/mail/pull/7021