New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read email content for each email in Thread #23
Conversation
Looks good so far. Tiny remarks:
Use sentDate for the date display in |
Using (I have the impression you load the email list then the mailbox list...) |
One other display remark: it is hard for me to distinguish from the email list Let me suggest you to render the subject in bold when the email is unread, normally when it is read, this might be enough to be doing the trick. |
Do we support display of You can star messages in OpenPaaS and try to support that as well in TMail. |
(And of course I trust @hoangdat or prioritizing my remarks :-) ) |
Wow, impressive! Good job guys, looks damn great! |
8665393
to
b06e51a
Compare
I am not convinced of the folding of To, Cc Bcc... I would prefer to have it always expended to be honest. (At least when it fits in 3-4 lines.) It is important information and in the detailed email view we have room. We likely should use it. |
What do you mean? Please be more specific. Can you draw detailed pictures so I can understand you. |
} | ||
|
||
if (unreadThreads == null || unreadThreads!.value.value <= 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, unreadEmails
is better.
<application | ||
android:name="io.flutter.app.FlutterApplication" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not TMail
?
472cb90
to
b4b7940
Compare
Can you update the video now that text/html is supported? <3 |
Please see the video I attached above. It's not complete yet, I'm testing and fixing some bugs. |
Huge thanks and nice work! |
Remember to get rid of |
import io.flutter.embedding.engine.FlutterEngine | ||
import io.flutter.plugins.GeneratedPluginRegistrant | ||
|
||
class MainActivity: FlutterFragmentActivity() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need to create this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run android
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But you delete another MainActivity
. Please help me to understand more in one comment, no need to save the time with short sentences.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I renamed packagegage, git saved it like that.
lib/features/email/domain/extensions/presentation_email_extension.dart
Outdated
Show resolved
Hide resolved
lib/features/email/domain/usecases/get_email_content_interactor.dart
Outdated
Show resolved
Hide resolved
lib/features/email/presentation/widgets/message_content_tile_builder.dart
Show resolved
Hide resolved
lib/features/email/presentation/widgets/message_content_tile_builder.dart
Outdated
Show resolved
Hide resolved
021fcb2
to
79ed656
Compare
NOTE
Specific email address: REASON
|
As a safe guard can we sanitize such CSS properties before the display? Did you reported the bug upstream? Do we have other HTML libraries to try out? |
|
cc @fabienmoyon ? |
@dab246 and @chibenwa for this we used https://github.com/cure53/DOMPurify like others projects like Protonmail ;) |
It quite complicated, and IMO, we should create an issue and move it to the relevant sprint to solve that. We still have an useable reading mail widget. WDYT? @dab246 @chibenwa |
btw, how about it: https://pub.dev/packages/sanitize_html |
I sanitizing the HTML content and it showed up. But it has removed some of the styles of the tags so the interface is not displayed correctly. How did you handle it after sanitizing the HTML @fabienmoyon |
79ed656
to
4a667d0
Compare
Issues: #51 |
4a667d0
to
36d02f2
Compare
@dab246 Yes you need to authorize some CSS and HTML tag like https://github.com/linagora/esn-frontend-common-libs/blob/ffdd13b42ca611d480f90761a879b0166348ba06/src/frontend/js/modules/core.js#L235 |
lib/features/email/presentation/widgets/message_content_tile_builder.dart
Outdated
Show resolved
Hide resolved
5b126fc
to
17f9fd7
Compare
17f9fd7
to
15de51d
Compare
One more thing to this issue, we will also use https://github.com/Automattic/juice to be able to inline style tag in the email body, like this we will be able to display the expected result and to not impact our style |
so cool, we should investigate more. btw, @fabienmoyon please download our application, try to use to read email, and feedback to us, may be give us more idea for html rendering https://app.bitrise.io/artifact/94688104/p/edd9b9adf8b0e1d30e537108230dc096 |
unread
email,flagged
email in list emailtext/plain
formatTo
,Cc
,Bcc
header withCollapse/Expand
modetext/html
formatScreen.Recording.2021-08-13.at.18.25.32.mov
Demo Display email content with html format
content_html.mov
Screen.Recording.2021-08-19.at.18.12.55.mov