Option to use (non-imap) local trash folder for IMAP account
Categories
(Thunderbird :: Account Manager, enhancement)
Tracking
(Not tracked)
People
(Reporter: sha256sum, Assigned: gds, NeedInfo)
References
Details
Attachments
(1 file, 3 obsolete files)
33.64 KB,
patch
|
Details | Diff | Splinter Review |
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
Comment 3•20 years ago
|
||
Updated•18 years ago
|
Updated•17 years ago
|
Comment 5•17 years ago
|
||
Updated•17 years ago
|
Comment 6•17 years ago
|
||
Comment 7•16 years ago
|
||
Comment hidden (metoo) |
Comment hidden (metoo) |
Comment hidden (metoo) |
Comment hidden (metoo) |
Comment 17•4 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #6)
Wontfix?
- probably not a smart workaround to hitting mail quotas
This is not only about quotas but also about privacy.
I keep the deleted messages (same as sent) for quite a while but don't want them to remain on the (IMAP) server. So I keep them in a local folder or in a folder of another POP account. No problem with sent folder, not possible with trash folder.
Comment 18•4 years ago
|
||
Does anyone have an update on this 17 year old issue?
I could've sworn I had all my trash set to a local folder "recently" (a year or two ago), but I can't seem to get it to work now in 91.3.2 ...
Updated•3 years ago
|
Comment 19•2 years ago
|
||
Yikes! 20 years old!
My IMAP provider auto deletes, every 30 days, messages in the IMAP Trash folder. I'd rather keep them in a local Trash folder and delete myself, as necessary.
Assignee | ||
Comment 20•2 years ago
|
||
This is a first cut attempt to allow a user to set mail.server.serverX.trash_folder_name
to any folder URI so that when you delete a message it goes to that folder. Currently, via Server Settings or by manually setting trash_folder_name
, it only allows choosing a folder on "serverX".
So with this patch, if you want deleted imap account messages to to go to Trash on Local Folders you would set mail.server.serverX.trash_folder_name
to mailbox://nobody@Local%20Folders/Trash
. The user "nobody" and the %20 escape char for blank are required.
Note: Using the folder location shown for Local Folders Trash properties, e.g.,
mailbox:///home/gene/.thunderbird/kgmivl5o.default-release/Mail/Local Folders-maildir/Trash/
doesn't work.
You can also cause deleted messages to go to an arbitrary IMAP folder by setting trash_folder_name
to the folder's URI, e.g., imap://gd.smth@imap.mail.me.com/test
. For imap folders, the location shown for the folder's property IS the correct URI to enter into trash_folder_name
.
This doesn't currently set the "Trash" flag on the selected folder. So, unless the selected folder already displays the "Trash" icon, it won't have the "Empty Trash" capability and won't show the icon. I think this is probably OK.
A more user friendly fix would, of course, require changing the Server Setting UI for trash folder selection to allow selection from any folder on Local Folder, imap and POP accounts and encode the full folder URI into the trash_folder_name
pref. Currently it only encodes a partial path, not the full URI, to the selected trash folder for the current server, e.g., Inbox/Trash
.
Comment 21•2 years ago
|
||
It would be great if Trash folder worked like all the other special folders. I don't think we'd just want to hack the current pref though.
Assignee | ||
Comment 22•2 years ago
|
||
This is just a small change to allow manually setting the pref back to a path on the current server. As it was, once you set the pref to point to another server you could never go back.
Magnus wrote from comment 21:
It would be great if Trash folder worked like all the other special folders. I don't think we'd just want to hack the current pref though.
This is currently just a prototype to show it can be done by "hacking" the existing pref and allowing the user to set it manually. Yes, I think it should ultimately be like the other "special" folders so to select a trash folder you would see radio selections:
() "Trash" folder on [choose just an account, default to current account]
() Other [choose an account and then a folder, default to current account]
But all the other special folders can be set differently on each identity. Don't know if trash setting should also be tied to an identity.
Assignee | ||
Comment 23•2 years ago
|
||
Here's a more complete and general WIP implementation so you can select your imap trash folder to be anywhere. However, I ran into a problem when trash is in Local Folders and I try to delete a folder or a folder tree from imap account to it. The folders get copied to the L.F. trash and deleted from the source imap, but the messages don't always get copied. Also, sometime the lower level folders don't get copied either. Haven't found a fix for this yet.
Haven't tested folder delete when the destination is a trash folder on another imap account.
If you are just deleting messages and not folders, this works to any trash destination.
Comment 26•9 months ago
|
||
Created attachment 9360904 [details] [diff] [review]
trash-to-anywhere-v2.diffHere's a more complete and general WIP implementation so you can select your imap trash folder to be anywhere. However, I ran into a problem when trash is in Local Folders and I try to delete a folder or a folder tree from imap account to it. The folders get copied to the L.F. trash and deleted from the source imap, but the messages don't always get copied. Also, sometime the lower level folders don't get copied either. Haven't found a fix for this yet.
Haven't tested folder delete when the destination is a trash folder on another imap account.
If you are just deleting messages and not folders, this works to any trash destination.
Thank you for creating this patch, I've been using this for a little under a year now without any issues. I haven't tested the folder deleting issue as its not something that ever came up in my workflow.
Unfortunately this patch no longer applies with the latest versions of Thunderbird. Looks like code moving around and some refactoring broke it.
Assignee | ||
Comment 27•9 months ago
|
||
patch no longer applies with the latest versions of Thunderbird
Thanks for using the patch. Been a while since I did this and completely forgot about it.
I'll try again to apply the patch and see if I can get it to work again. But want to make sure I understand what you mean by "latest version" of TB. I would presume you mean latest 128ESR. But I guess it's possible you mean latest beta or maybe latest daily that it no longer cleanly applies with.
Comment 28•9 months ago
|
||
(In reply to gene smith from comment #27)
patch no longer applies with the latest versions of Thunderbird
Thanks for using the patch. Been a while since I did this and completely forgot about it.
I'll try again to apply the patch and see if I can get it to work again. But want to make sure I understand what you mean by "latest version" of TB. I would presume you mean latest 128ESR. But I guess it's possible you mean latest beta or maybe latest daily that it no longer cleanly applies with.
The release I was trying to patch was 128.5.0ESR. I'm not too sure at when the patch was no longer applyable. Some time between 115.9.0 and 128.5.0.
Assignee | ||
Comment 29•8 months ago
|
||
Sorry for the delay getting back to this.
I've updated the patch to resolve the conflicts (all minor, e.g., const vs. let, etc). I've only applied this and tested this on a post-128esr daily so I'm hoping it will apply OK to the latest 128esr.
I've been working on another patch involving Trash folders (Bug 399475, still being reviewed) and need to make sure this doesn't conflict with that patch.
Anyhow, I need to review what I did on this patch and submit a formal moz-phab patch for this.
Description
•