Skip to content
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

Conversation view #6

Closed
1 of 2 tasks
ghost opened this issue Dec 9, 2014 · 33 comments
Closed
1 of 2 tasks

Conversation view #6

ghost opened this issue Dec 9, 2014 · 33 comments

Comments

@ghost
Copy link

ghost commented Dec 9, 2014

As a user, I want to be able to see at a glance what other emails (older and and newer) a conversation contains so I don't have to dig through my inbox or deeply nested comments/quotes

AC

Original comment

Gmail has conversation view.

I have been looking for a privacy-conscious email service that offers this
as well. I have been using OpenMailbox and RiseUp, however they both
use RoundCube software.

RoundCube has had a ticket open on this for 9 years so who knows when they
will implement this, if ever. Please add conversation view so I can dump Gmail
for good.

@mpfau
Copy link
Contributor

mpfau commented Dec 9, 2014

Steven, thanks for your input!

This has already been prepared but not implemented on the client. Only the GUI is missing...

I posted your idea on our uservoice:
http://tutanota.uservoice.com/forums/237921-general/suggestions/6820765-conversation-view

You can vote for it!

@ghost
Copy link
Author

ghost commented Jan 18, 2015

It has been over a month, any updates?

@mpfau
Copy link
Contributor

mpfau commented Jan 19, 2015

Sure. It has been upvoted and is one of the most wanted features. We are going to implement it soon.

@armhub armhub closed this as completed Mar 20, 2015
@armhub
Copy link
Contributor

armhub commented Mar 20, 2015

The conversation view is not implemented yet, but I closed this issue as we track it here: http://tutanota.uservoice.com/forums/237921-general/suggestions/6820765-conversation-view

@mpfau
Copy link
Contributor

mpfau commented Sep 10, 2018

@cup I will add it to our roadmap...

@mpfau mpfau reopened this Sep 10, 2018
@mpfau mpfau added this to the Roadmap milestone Sep 10, 2018
@vladimiry
Copy link

I was exploring the possibility to enable conversation view mode as a part of this issue vladimiry/ElectronMail#32 (comment) and so far it looks feasible. Tutanota maintains the conversation entry and email message entities, which are linked with each other using one-one reference. The conversation entry entity is needed to construct the tree-like conversation view mode based on its previous/parent property. But the thing is that backend removes the conversation entry in along with removing the corresponding email message, which makes the conversation consistency broken. Building the desktop app I can get around that with a simple trick of never removing the conversation entries, just ignoring removing from the local database when Tutanota does that. @charlag would appreciate any other ideas for handling the possible conversation consistency breaking issue.

@charlag
Copy link
Contributor

charlag commented Sep 12, 2018

@vladimiry we've discussed conversation view yesterday, it shouldn't take too long on our side because backend is mostly there. Thanks for pointing out this issue, maybe we should make some changes on the backend for this to work, we will discuss it and will try to get back to you soon

@vladimiry
Copy link

vladimiry commented Sep 12, 2018

I was not fully correct writing that backend just removes the conversation entries. Now I see that backend sets the entry.conversationType value to 3 if there are remaining messages in the conversation, and removes all the linked conversation entries only when the conversation gets empty. Such scenario allows preserving the conversation tree consistency, so there is no issue. I guess value 3 means removed? It's not yet listed here

export const ConversationType = {

@charlag
Copy link
Contributor

charlag commented Sep 12, 2018

@vladimiry yup, that's just what I learned from the team
It is
NEW REPLY FORWARD UNKNOWN // a message for which no mail exists in Tutanota (unknown external mail or deleted mail)

we will update the definition

vladimiry added a commit to vladimiry/ElectronMail that referenced this issue Sep 13, 2018
@armhub armhub added the new feature user stories in varying refinement states label Sep 20, 2018
@vladimiry
Copy link

If someone wants to try it in action, the first beta of a desktop app with conversation view mode of the local database explorer has been just published.

@gabrielmip
Copy link

@vladimiry How independent is your work from the main Tutanota repo? Are you planning on submitting a PR here with the conversation view? Thanks!

@vladimiry
Copy link

@gabrielmip the code of the desktop app I've been building is not designed to be submitted to the Tutanota repo. Besides, regarding the desktop app, there is an essential piece of work that is happening on the backend, which in the case of Tutanota is not open-sourced (not a part of this repo). The backend task is preparing the data for displaying in the conversation mode and I guess Tutanota team will need to adjust the server-side code first, ie the API. If you are interested in trying the desktop app, I'd recommend taking the latest beta from this page, it works quite stable despite of the beta status.

@charlag
Copy link
Contributor

charlag commented Nov 19, 2018

@vladimiry would you mind sharing which part we would need to adjust? Conversations are recorded correctly afaik.

@vladimiry
Copy link

vladimiry commented Nov 19, 2018

@charlag, this is what I've found out so far. There are two linked between each other entities, Mail and ConversationEntry. ConversationEntry is needed to construct the conversation tree. It's a common thing for the conversation view mode to initially display only the single most recent mail of each individual conversation with an option to expand the conversation. So there is a need in a sort of aggregation function that constructs the conversations based on the Mail and ConversationEntry entities, then it sorts the emails in each conversation and picks the most recent messages and sorts the final list based on these most recent messages. So the outcome of this function would be a list of the most recent emails in conversation plus some metainformation, like conversation size at least, so you know on the client side that conversation is expandable. Besides the final list will need to be reactively constructed and re-displayed on emails creating/removing events. It might be possible to do such kind of aggregation on the client side, but it would probably be more efficient to perform it at the server side. I might be missing something since I've explored only the Tutanota's client-side code and only to the extent needed to fulfill the desktop project building task.

Conversations are recorded correctly afaik.

Conversation view mode is supported for about 2 months already by the mentioned before desktop app (since v2.0.0-beta.1) and conversation is a default view mode since v2.0.0-beta.6. I have not noticed so far any issues with the conversation structure recording and so I confirm that conversations structure is well recorded.

@charlag
Copy link
Contributor

charlag commented Nov 19, 2018

@vladimiry thanks for sharing!
I think it's already does all the mapping. Mail has a reference to conversation entry (which is in a list). Conversation entry has a reference to the mail and to the previous conversation entry and there are some other parts I don't understand yet.

@vladimiry
Copy link

I think it's already does all the mapping.

It does the mapping, but the data convenient for displaying as the continuous feed is a different thing.

@vseshu

This comment has been minimized.

@charlag

This comment has been minimized.

@vladimiry

This comment has been minimized.

@vseshu

This comment has been minimized.

@vladimiry

This comment has been minimized.

@charlag charlag added this to Planned in Roadmap refinement Jan 30, 2019
@puka-tchou
Copy link

puka-tchou commented Aug 9, 2019

I've been looking forward seeing the conversation view implemented. It's now 5 years that this issue exists, do you plan to add it soon ?
To me, it's one of the most critical drawbacks.

@unrockbar
Copy link

Does not look like this feature will be released any time soon 🤔

@puka-tchou
Copy link

It seems, indeed. Time to look the code and figure out how to implement it. I think I'm going to give it a shot, submit a PR and hope the team accepts it!

@pete-willard
Copy link

This is what they said three days ago:

Separate window and conversation view are planned for the coming months.

https://www.reddit.com/r/tutanota/comments/e0459t/just_got_myself_a_protonmail_account_for/f8byydz/

Fingers crossed it's 1-2 months, not 9-11 ;)

@mpfau
Copy link
Contributor

mpfau commented Nov 26, 2019

@Gaspacchio just let us know if you have any questions!

@puka-tchou
Copy link

It seems, indeed. Time to look the code and figure out how to implement it. I think I'm going to give it a shot, submit a PR and hope the team accepts it!
#6 (comment)

OK, so I got excited. Implementing conversation view is kind of a huge task I'm still figuring out what is responsible for creating the mail view and it will probably take some time. I'll submit a WIP PR to keep you posted about my progress as soon as possible.

@vladimiry
Copy link

@Gaspacchio if you are interested, conversation view is implemented here in local database/store view mode for more than a year. But Tutanota-related stuff is going to be dropped soon. Ask questions in respective repoitory if needed.

@charlag
Copy link
Contributor

charlag commented Dec 18, 2019

@vladimiry I think it could be extremely helpful if you linked to the place it is implemented in your app.

@vladimiry
Copy link

vladimiry commented Dec 18, 2019

To present the mails as a conversations list there is a need to first group the mails by conversations, then sort mails in each conversation by mail.date and then the last mail of each conversation will be put in a list for displaying (so conversation.date = <newest mail in the conversation>.date). Then all the items in the conversations list need to be sorted by that conversation.date property. It's not so easy to do as Tutanota preserves the tree/parent-child-like conversation structure. So I handled the described stuff in the case of the desktop app as I have all the data loaded in memory but the web/in-browser version can't act the same way as the data is being loaded by portions (pagination/infinite scrolling). This is why I wrote before in this thread:

The backend task is preparing the data for displaying in the conversation mode and I guess Tutanota team will need to adjust the server-side code first, ie the API.

Attaching animated explanation with one conversation consisted of 5 mails

The app initially supported tree-like conversations items displaying for Tutanota but then such rendering got dropped, so just plain list:

demo3

@vladimiry I think it could be extremely helpful if you linked to the place it is implemented in your app.

Pointing to the code but it's not like a single code snippet and it's desktop-app specific:

PS If someone wants to try the app in action, the local store feature doesn't work anymore in released version (you will get body must be a string validation error, which is expected to happen as data model got changed at the server/Tutanota side) and won't be as the functionality is deprecated and planned for dropping. But the link to the working installation package can be found in this message or the package can be compiled from the source code (master branch).

@HarlemSquirrel
Copy link

Hi all, is there any update on this? I've moved from Gmail and this would really be a nice feature to have.

@charlag
Copy link
Contributor

charlag commented May 19, 2020

I have a working prototype but it's not decided whether it will be the final version or not.

@tutao tutao locked and limited conversation to collaborators May 19, 2020
@bedhub bedhub added idea notes down not immediately solvable things that don't have general buy-in yet and removed idea notes down not immediately solvable things that don't have general buy-in yet labels Feb 4, 2022
@bedhub
Copy link
Contributor

bedhub commented Jan 15, 2024

We have conversation in the mail viewer for some time now. We still need conversations support in the mail list itself. We will track this particular case now here and do it later #5051.

@bedhub bedhub closed this as completed Jan 15, 2024
@bedhub bedhub removed this from the Roadmap milestone Jan 15, 2024
@bedhub bedhub removed the new feature user stories in varying refinement states label Jan 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests