nostalgy-xpi icon indicating copy to clipboard operation
nostalgy-xpi copied to clipboard

suggest folder of related conversation

Open opto opened this issue 3 years ago • 19 comments

TB connects emails in conversations, e.g. an email and its follow-up replies.

If there is no rule for an email, we could suggest the folder where the rest of the conversation is filed.

At the moment, I have implemented this (*) to use the folder of the previous email in the conversation. Now, it could be that some emails are not filed/archived yet. So tis folder could be the wrong one. Another option would be to take the folder coming up most often in the conversation, or to propose all.

What do you think is best/easiest in daily practise?

(*) coming up soon here.

Klaus

opto avatar Nov 03 '21 09:11 opto

I would welcome such a feature. Listing all folders where any part of the thread is archived would make sense, ordered by the number of matching messages in that folder. Then when you start tidying up, the list will quickly become shorter.

acolomb avatar Nov 03 '21 09:11 acolomb

This is a very good idea, I would also appreciate very much showing automatically where other emails of the conversation are. I agree with acolomb that if the messages are in different folders, then ordering them by decreasing frequency would help. I will often have the case that some of the emails will be in the sent folder, whereas others are classified. Thanks Klaus for being to proactive in developing Nostalgy

Olifair avatar Nov 03 '21 10:11 Olifair

I just played around with my current solution, just using the folder from the last email. That seems to be unusable in this scenario: receive email start draft save another version of draft sent

etc.

It seems TB does not delete the saves drafts upon sent. So in one of my threads, I have a wild mixture of correct saving folder, sent, multiple draft etc. It seems a conersation 'cleanup' button would also make sense in the end. And maybe apply these suggestions only in inbox, and exclude drafts and sent as possible destinations.

Having only one suggestion fits into the current UI. Having a list needs new popups and ....

opto avatar Nov 03 '21 13:11 opto

and later maybe a conversation tidy up button. To select all conversation messages except drafts and choose a new destination for all.

opto avatar Nov 03 '21 13:11 opto

if you are interested, please try this: https://github.com/opto/nostalgy-xpi/releases/tag/v3.0.10

if you select a message and open error console, you will find an uriList. That shows all folders of the conversation that are not sent, drafts or inbox. At the moment, the top one is chosen for suggestion.

Klaus

opto avatar Nov 03 '21 22:11 opto

new version 3.0.11 adding mouse gestures: as3.0.10, this proposes the folder of other emails in the conversation as move.destination.

Move can be initiated by shift_S or by mouse gesture: click on the email in the tree, drag it up 1 line, release mouse (all within 1 sec).

If you drag the email down one line, it is a move to folder and go to folder.

https://github.com/opto/nostalgy-xpi/releases/tag/v3.0.11

opto avatar Nov 06 '21 21:11 opto

Has anything changed in one of the last versions of Nostalgy for the suggestions of related conversations ? I have recently 3.1.3 installed, and he "related conversation" option played havoc with the suggestions. Basically it suggested always for an email the "sent email" folder (I'm never using Nostalgy to move emails to the sent email folder), and once I had classed an email, always the last chosen folder was suggested, when working through my infolder, where often emails with same senders or subjects come in sequence. When a new subject or sender comes up, it's back to suggesting "sent email" folder. When switching off this option, everything went back to normal. i'm not very much bothered by this, but thought that it might be usefull to have it on record. Cheers

Oliver

Olifair avatar Jan 31 '22 14:01 Olifair

not any change to my knowledge.

what might have happended: the conversation may have many emails. We are just picking one, maybe the last one, i don't remember now.

So if the last one was your sent message, it might take that - and therefore sent folder, if it went in there?? Maybe you can look into the history of the conversation to verify, and try with another conversation.

for the future, we might need some statistics (which folder did it go to most often), or even a repair conversation, putting all member emails into the same folder?

opto avatar Jan 31 '22 21:01 opto

I think I figured out what is happening : as I'm classing emails in the inbox, this means that all (or most) of the emails in a conversation were not classed yet. So in the case when emails are responses to an email I had sent, following up the hierarchy from one email to the last classed one, I end nearly always with my originally sent email, which has been classed in the "sent email" folder. I think the easiest solution would be making an exception for the sent email folder and taking it out of the automatic suggestions concerning conversations. I think not very many people will class whole conversations of received emails in their sent email folder. However, Nostalgy would need to know how the sent email folder is named, but I guess that it would be possible to get this information from TB, no ?

Olifair avatar Feb 01 '22 10:02 Olifair

yes, my plan was/is something like that

opto avatar Feb 02 '22 18:02 opto

as a matter of fact, we do this already: !foldUri.toString().endsWith("Sent") && !foldUri.toString().endsWith("INBOX") && !foldUri.toString().endsWith("Drafts")``

How is sent etc. typed in your mailserver? Sent vs. sent, etc?

opto avatar Feb 02 '22 20:02 opto

the current version did propose the folder of the current message if the conversation holds only 1 (= the current) message.

this version fixes that: https://github.com/opto/nostalgy-xpi/releases/tag/v3.2.2, because we wouldn't/couldn't move from currentfolder to currentfolder)

opto avatar Feb 02 '22 21:02 opto

the last is already outdated, this one uses the special folder flags to not use sent, drafts etc. for suggestion: https://github.com/opto/nostalgy-xpi/releases/tag/v3.2.3

opto avatar Feb 02 '22 22:02 opto

First on the name of the sent folder : I'm actually in France, in a French installation the sent folder is called "Éléments envoyés"; but one can choose in TB options which folder should be the sent messages folder. This is why Nostalgy should probably get this information out of the TB options. I will install 3.2.3 and test. Thanks Oliver

Olifair avatar Feb 03 '22 08:02 Olifair

Using 3.2.3, I'm still having the same problem, for many emails the sent folder "Éléments envoyés" is suggested. I guess this is because the sent folder name is hardcoded and not taken from TB options ? The same is probably also true for archive and draft folders, as they can also be defined for each account in the options "Copies et dossiers" (probably "Copies and Folders" in English).

Olifair avatar Feb 03 '22 08:02 Olifair

actually no: TB has a function: isSpecialFolder() which we are using, and the special folder types are:

Ci.nsMsgFolderFlags.Drafts|Ci.nsMsgFolderFlags.Sent|
                      Ci.nsMsgFolderFlags.Trash|Ci.nsMsgFolderFlags.Junk  |Ci.nsMsgFolderFlags.Templates

don't know where one would get a "more authentic" labelling - his is directly copied from TB code.

So this needs some more thinking about what to do.

opto avatar Feb 03 '22 19:02 opto

ok, my error the flag is SentMail not Sent. new version will follow

opto avatar Feb 03 '22 21:02 opto

https://github.com/opto/nostalgy-xpi/releases/tag/v3.2.4

opto avatar Feb 03 '22 22:02 opto

Great, works now as expected. :-) you can close this one :-)

Olifair avatar Feb 04 '22 08:02 Olifair