mail icon indicating copy to clipboard operation
mail copied to clipboard

Mail grouping by thread - deletion of 1 message deletes others in other folders

Open PatrykRzadzinski opened this issue 5 months ago • 9 comments

Steps to reproduce

  1. Get a series of emails belonging to 1 thread
  2. move them to a folder
  3. Get another email and delete it
  4. Email goes to trash but so the others from a folder

Same happens in case of

  1. sending an email to a group
  2. got mail delivery failure notification
  3. delete the notification
  4. original email gets deleted from Sent folder

Expected behavior

I would expect that actions such as move or delete ONLY apply to the emails grouped in given folder, such as INBOX. Moving a thread from inbox should not also move messages from Sent folder.

Actual behavior

Messages get moved, tbh I lost a lot of messages this way without noticing...

Mail app version

5.9.2

Nextcloud version

33.0.5

Mailserver or service

Exim

Operating system

Gentoo

PHP engine version

PHP 8.3

Nextcloud memory caching

No response

Web server

Nginx

Database

MariaDB

Additional info

No response

PatrykRzadzinski avatar Jun 14 '26 19:06 PatrykRzadzinski

Thanks for your report 👍

Indeed something we should double check. Currently the operations apply to all messages of a thread also if the message is in a different folder.

cc @nimishavijay @ChristophWurst

kesselb avatar Jun 23 '26 08:06 kesselb

IMO if it says Delete thread I expect it to delete everything that is shown in the thread, not a subset specific to the mailbox the thread is opened from.

ChristophWurst avatar Jun 23 '26 08:06 ChristophWurst

IMO if it says Delete thread I expect it to delete everything that is shown in the thread, not a subset specific to the mailbox the thread is opened from.

Pls consider many users got accustomed how corporate mail solutions (outlook, gmail...) treat mail threads now, so making it work differently might result in nasty surprises, especially in scenarios mentioned: when deleting delivery failure notifications or having items from the Sent folder disappear. Pls note it's not just deletes but also moves, e.g. OK, this thread is now finished, I'll move it to folder X, resulting in also my Sent messages move to the folder X...

PatrykRzadzinski avatar Jun 23 '26 10:06 PatrykRzadzinski

I just tested Gmail

  1. Sent an email to a non-gmail account
  2. Replied from the non-gmail account
  3. Saw the reply in Gmail
  4. Clicked Delete on the reply

The email from 1. is deleted too.

ChristophWurst avatar Jun 23 '26 11:06 ChristophWurst

@ChristophWurst You didn't specify in what folder.

I know Google uses "labels" so maybe it's not the correct naming I am using here, let's just assume it's the same as maildir folders. I have gmail at work and I can see that: I have 1 mail thread for which on day 1 I moved some messages from inbox to folder A, and on day 2 I got a few more messages, moved from inbox to folder B. Result: No message was moved from Sent, part of thread is in folder A, another part of thread is in folder B. I proceeded with deleting the last message (happens in B), and only that message got deleted.

PatrykRzadzinski avatar Jun 23 '26 11:06 PatrykRzadzinski

I tested in the inbox

ChristophWurst avatar Jun 23 '26 11:06 ChristophWurst

In point 1 of your post, I presume the sending also created a message in your Sent folder. Was it deleted in step 4? If not, then that's one difference.

PatrykRzadzinski avatar Jun 23 '26 12:06 PatrykRzadzinski

Yes

ChristophWurst avatar Jun 23 '26 12:06 ChristophWurst

Hi there! It looks like this issue hasn’t seen much activity for a while and might need a bit more information to move forward. If we don’t hear back soon, we may close it to keep things organized. Thanks again for your contributions – we really appreciate it!

nextcloud-command avatar Jul 24 '26 02:07 nextcloud-command