xnote icon indicating copy to clipboard operation
xnote copied to clipboard

If an e-mail is moved to the Trash folder and is then deleted, the old XNote file remains on the disk.

Open froilo opened this issue 5 years ago • 6 comments

Moved from https://www.froihofer.net/bugzilla/show_bug.cgi?id=52

Workaround: Delete the XNote before deleting an e-mail.

froilo avatar Oct 24 '20 23:10 froilo

it could be un-trashed. To delete the note file only makes sense upon permanently deleting of the message.

opto avatar Oct 28 '20 17:10 opto

Hey there, Is there a chance, that this is fixed?

Yes, I see the workaround, but if you forget to remove the XNote prior to the deletion of the mail and then empty the recycle bin you have orphan files.

Maybe the deletion of the XNote File can be done if you empty the bin and up to then it is kept ?

SvenTej avatar Feb 25 '22 15:02 SvenTej

Thank you for reporting @froilo, but could you provide details? Is this saying that deletion does happen when an email is directly deleted?

Chealer avatar Mar 11 '25 14:03 Chealer

Thank you for reporting @froilo, but could you provide details? Is this saying that deletion does happen when an email is directly deleted?

This is saying that the notes file is not deleted if the e-mail is deleted. While this is not a big issue (notes files are small), the notes file is useless if the corresponding mail is deleted. Therefore, it would be good to hook into mail deletion in order to delete the notes file as well.

froilo avatar Apr 28 '25 16:04 froilo

Deleting the XNote file: this is tricky, as long as users sync the XNote folder/files into other TB installations on other PCs.

Then, user1 might finally delete the message + XNote on his machine, but user2 still has the message and XNote. If user1 also deletes the XNote file, this propagates by sync to all other users having this message/messageId and they loose their corresponding XNote.

I know of corporations syncing XNote files, so this would need some thought. As the sync is done outside of TB, TB cannot know whether XNotes are synced or not.

opto avatar Apr 28 '25 20:04 opto

Thank you for reporting @froilo, but could you provide details? Is this saying that deletion does happen when an email is directly deleted?

This is saying that the notes file is not deleted if the e-mail is deleted.

The report from @froilo is unclear about direct deletion, but if this happens regardless of how deletion happens, then I suggest retitling to something like:

Notes (files) kept after their emails are deleted

Deleting data can obviously cause data loss, but keeping data which is no longer necessary can also constitute a security issue.

Chealer avatar Apr 28 '25 20:04 Chealer