IMAP "delete" does not move mail to "Deleted" folder but just makes it disappear if Trash folder not set up
Categories
(MailNews Core :: General, defect, P2)
Tracking
(Not tracked)
People
(Reporter: jonas743, Unassigned)
References
Details
(Keywords: dataloss, regression, regressionwindow-wanted)
Attachments
(1 file)
|
33.81 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Steps to reproduce:
select mail, press "Delete"
Actual results:
mail was deleted
Expected results:
The mail should have been moved to the "Deleted" folder, but that one wasn't set up correctly in the config. When installing Thunderbird on other laptops it always worked "out of the box", but on the newest installation I relied on the Deleted folder and lost data.
I think Thunderbird should warn and ask for confirmation if mail is deleted and the folder is not set up.
Updated•9 months ago
|
I relied on the Deleted folder and lost data.
If you are talking about a gmail account and deleted emails are not put into imap Trash then it's likely they do not get put into server Trash folder thus gmail will only remove the label. Emails are still stored in 'All Mail' and you can either delete them properly from server 'All Mail' or reapply a label.
Advise you do not rely on a imap Trash folder because many servers auto remove/fully delete emails periodically. In gmail it's 30 days, but some server delete after 7 days, so it varies.
I think Thunderbird should warn and ask for confirmation if mail is deleted and the folder is not set
Confirm the reported issue:
I tested the info supplied and confirm deleted email seems to disappear as if I used Shift+Del.
In addition : 'Edit' > 'Undo delete message' fails, deleted message does not reappear as if I had used 'Shit+Del'.
As I did this in a gmail imap account - full recovery was obtained via webmail account. Emails were in 'All Mail' and I simply applied an Inbox label. This may not work on all servers.
I notice there is only a warn on delete if using Shift+Del which auto by passes Trash and in gmail can be used to delete additional copies and still retain original email. There is also a warn on empty Trash or delete an email in Trash.
There is no warning if the open to move to a folder is selected buy no folder selected.
Updated•9 months ago
|
| Reporter | ||
Comment 2•9 months ago
|
||
To clarify: the issue wasn't encountered with gmail but with imap access to a university mail account. I'm accessing the same mail account with thunderbird (I think older versions) from other computers, and there it works as expected, ie mail is used to trash, and never deleted (server settings just leave stuff in trash forever).
with the new setup I was able to restore a few mails via the web interface of the university since they still showed up grayed out in the inbox there, but most mails had disappeared I think.
(I might be commenting from a new account here, I just clicked on log in via github, but maybe last time i logged in differently)
Updated•9 months ago
|
Comment 3•5 months ago
|
||
What do y'all think the intended behaviour should be here?
This issue seems to only really affect IMAP on a server where no such folder exists? Create the folder remotely or locally, emit an error message and refuse to delete, additional confirmation?
| Reporter | ||
Comment 4•5 months ago
|
||
I think the intended behavior if a user clicks on delete or uses the delete shortcut and no trash folder is configured, should be that a dialogue comes up telling the user to configure the trash folder folder, maybe with an option to create the default config. It should definitely refuse to delete.
To be clear, the issue is not only about IMAP servers where the folder doesn't exist. The account where I encountered the problem has a "Deleted" folder that was correctly recognized when accessing the account via older thunderbird versions on other computers.
Comment 5•5 months ago
|
||
To be clear, the issue is not only about IMAP servers where the folder doesn't exist. The account where I encountered the problem has a "Deleted" folder that was correctly recognized when accessing the account via older thunderbird versions on other computers.
How did you end up with this setup? POP3 or Movemail?
Thanks for the input.
| Reporter | ||
Comment 6•5 months ago
|
||
It's a university mail account which can be accessed via a web front end and via imap. I'm not aware of pop3 being involved anywhere, and I don't know what movemail is.
Comment 7•5 months ago
•
|
||
(In reply to Jonas Frey from comment #6)
It's a university mail account which can be accessed via a web front end and via imap. I'm not aware of pop3 being involved anywhere, and I don't know what movemail is.
Sorry, I may have misread your message, then this issue is IMAP-only.
I will try to see how a regression in folder detection might have happened from our end.
| Reporter | ||
Comment 8•5 months ago
|
||
Yes it's an IMAP issue, maybe I phrased comment 4 in a confusing manner sorry.
It's good to fix any regressions in folder detection, but wouldn't it make sense to also add an additional safety check to prevent deletion if the folder detection fails and the trash folder is not correctly set up?
Comment 9•5 months ago
•
|
||
(In reply to Jonas Frey from comment #8)
Yes it's an IMAP issue, maybe I phrased comment 4 in a confusing manner sorry.
It's good to fix any regressions in folder detection, but wouldn't it make sense to also add an additional safety check to prevent deletion if the folder detection fails and the trash folder is not correctly set up?
I would like to see some feedback by Thunderbird staff/core contributors on the desired shape of the fix.
Updated•5 months ago
|
Comment 10•5 months ago
•
|
||
The account where I encountered the problem has a "Deleted" folder that was correctly recognized when accessing the account via older thunderbird versions on other computers.
Bug 399475 seems like the most likely potential cause of regression in Thunderbird-code, but I do not see a clear path on why it worked before but no longer works now without a server-side change.
I assume no proper \Trash IMAP flag is set and the only the verbatim name Trash is considered otherwise.
Comment 11•5 months ago
|
||
I would like Trash folder to work the same as the other folder type selections... There's a wip patch in bug 277854 which may be worth brushing off.
Not sure what's reasonable to implement here.
We need to at least not silently lose the message. It may be reasonable to just silently create the specified folder if it didn't exist.
Description
•